From 1a5bb8d9ef667e844df49d3950dc913c9a4a5c87 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 17 Mar 2025 23:29:18 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14326 #issuecomment-2727527008 --- app/src/protyle/wysiwyg/transaction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts index 8975a4252..eb1f5ca8c 100644 --- a/app/src/protyle/wysiwyg/transaction.ts +++ b/app/src/protyle/wysiwyg/transaction.ts @@ -472,7 +472,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo: if (operation.action === "update") { // 缩放后仅更新局部 https://github.com/siyuan-note/siyuan/issues/14326 if (updateElements.length === 0) { - const newUpdateElement = protyle.wysiwyg.element.firstElementChild; + const newUpdateElement = protyle.wysiwyg.element.querySelector('[data-node-id]'); const newUpdateId = newUpdateElement.getAttribute("data-node-id"); const tempElement = document.createElement("template"); tempElement.innerHTML = operation.data;