Vanessa 2025-04-27 17:26:26 +08:00
parent 2fa11137a0
commit 5cd040b302

View File

@ -482,6 +482,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
// 缩放后仅更新局部 https://github.com/siyuan-note/siyuan/issues/14326
if (updateElements.length === 0) {
const newUpdateElement = protyle.wysiwyg.element.querySelector("[data-node-id]");
if (newUpdateElement) {
const newUpdateId = newUpdateElement.getAttribute("data-node-id");
const tempElement = document.createElement("template");
tempElement.innerHTML = operation.data;
@ -497,6 +498,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
}
}
}
}
if (updateElements.length > 0) {
updateBlock(updateElements, protyle, operation, isUndo);
} else if (isUndo) {