From f3f4760deee3f768815a665979793d6667a634cd Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 17 Nov 2025 19:23:32 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/16363 --- app/src/block/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/block/util.ts b/app/src/block/util.ts index 610c65cf0..2d5acf277 100644 --- a/app/src/block/util.ts +++ b/app/src/block/util.ts @@ -50,7 +50,7 @@ export const cancelSB = async (protyle: IProtyle, nodeElement: Element, range?: getContenteditableElement(nodeElement).insertAdjacentHTML("afterbegin", ""); } nodeElement.lastElementChild.remove(); - nodeElement.replaceWith(nodeElement.firstElementChild); + nodeElement.replaceWith(...nodeElement.children); if (range) { focusByWbr(protyle.wysiwyg.element, range); }