Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: https://github.com/siyuan-note/siyuan/issues/16363

Vanessaf3f4760deee3
diff --git a/app/src/block/util.ts b/app/src/block/util.ts
index 610c65cf00..2d5acf277e 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", "<wbr>");
}
nodeElement.lastElementChild.remove();
- nodeElement.replaceWith(nodeElement.firstElementChild);
+ nodeElement.replaceWith(...nodeElement.children);
if (range) {
focusByWbr(protyle.wysiwyg.element, range);
}