From bb77dfa5a4cac8de300f472d6da8013f1aec5091 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 27 Jun 2025 11:42:19 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14904 --- 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 c5eb6244e..9b9677c8e 100644 --- a/app/src/protyle/wysiwyg/transaction.ts +++ b/app/src/protyle/wysiwyg/transaction.ts @@ -294,7 +294,7 @@ const updateEmbed = (protyle: IProtyle, operation: IOperation) => { } else { item.querySelectorAll(".protyle-wysiwyg__embed").forEach(embedBlockItem => { const newTempElement = allTempElement.content.querySelector(`[data-node-id="${embedBlockItem.getAttribute("data-id")}"]`); - if (newTempElement) { + if (newTempElement && !isInEmbedBlock(newTempElement)) { updateHTML(embedBlockItem.querySelector("[data-node-id]"), newTempElement.outerHTML); } });