From 3e8585394da8dceccc66dd3d2964e7343d4cdea5 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 13 Feb 2024 13:54:25 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/10346 --- app/src/protyle/util/insertHTML.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/protyle/util/insertHTML.ts b/app/src/protyle/util/insertHTML.ts index 4f879bb0d..20db1e75e 100644 --- a/app/src/protyle/util/insertHTML.ts +++ b/app/src/protyle/util/insertHTML.ts @@ -248,6 +248,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false, range.insertNode(tempElement.content.cloneNode(true)); range.collapse(false); blockElement.querySelector("wbr")?.remove(); + protyle.wysiwyg.lastHTMLs[id] = oldHTML; input(protyle, blockElement as HTMLElement, range); return; }