mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 19:40:48 +08:00
This commit is contained in:
parent
bba72c2ea7
commit
1278e1142a
@ -481,6 +481,12 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
|
|||||||
updateElements.push(newUpdateElement);
|
updateElements.push(newUpdateElement);
|
||||||
operation.data = newTempElement.outerHTML;
|
operation.data = newTempElement.outerHTML;
|
||||||
operation.id = newUpdateId;
|
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();
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (updateElements.length > 0) {
|
if (updateElements.length > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user