mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-28 19:26:09 +01:00
This commit is contained in:
parent
1278e1142a
commit
7e41e00ca9
1 changed files with 4 additions and 5 deletions
|
|
@ -482,11 +482,10 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
|
|||
operation.data = newTempElement.outerHTML;
|
||||
operation.id = newUpdateId;
|
||||
// https://github.com/siyuan-note/siyuan/issues/14326#issuecomment-2746140335
|
||||
protyle.wysiwyg.element.childNodes.forEach((item, index) => {
|
||||
if (index !== 0) {
|
||||
item.remove();
|
||||
}
|
||||
})
|
||||
for (let i = 1; i < protyle.wysiwyg.element.childElementCount; i++) {
|
||||
protyle.wysiwyg.element.childNodes[i].remove();
|
||||
i--;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (updateElements.length > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue