mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Changeset: Migrate from OpIter
to deserializeOps()
This commit is contained in:
parent
0eca0251f2
commit
89fe40e080
16 changed files with 147 additions and 179 deletions
|
@ -197,13 +197,12 @@ const getHTMLFromAtext = async (pad, atext, authorColors) => {
|
|||
return;
|
||||
}
|
||||
|
||||
const iter = Changeset.opIterator(Changeset.subattribution(attribs, idx, idx + numChars));
|
||||
const ops = Changeset.deserializeOps(Changeset.subattribution(attribs, idx, idx + numChars));
|
||||
idx += numChars;
|
||||
|
||||
// this iterates over every op string and decides which tags to open or to close
|
||||
// based on the attribs used
|
||||
while (iter.hasNext()) {
|
||||
const o = iter.next();
|
||||
for (const o of ops) {
|
||||
const usedAttribs = [];
|
||||
|
||||
// mark all attribs as used
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue