Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/18084

Vanessa11079b16deb2
diff --git a/app/src/block/util.ts b/app/src/block/util.ts
index ac9e846563..1aea99c058 100644
--- a/app/src/block/util.ts
+++ b/app/src/block/util.ts
@@ -49,7 +49,7 @@ export const cancelSB = async (protyle: IProtyle, nodeElement: Element, range?:
id,
});
if (range) {
- getContenteditableElement(nodeElement).insertAdjacentHTML("afterbegin", "<wbr>");
+ getContenteditableElement(nodeElement)?.insertAdjacentHTML("afterbegin", "<wbr>");
}
nodeElement.lastElementChild.remove();
nodeElement.replaceWith(...nodeElement.children);