An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/14538
Vanessae9e57fa19a52
diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.tsindex 3202559d3f..56520e4e27 100644--- a/app/src/protyle/index.ts+++ b/app/src/protyle/index.ts@@ -177,7 +177,7 @@ export class Protyle {} else {onTransaction(this.protyle, item, false);// 反链面板移除元素后,文档为空- if (this.protyle.wysiwyg.element.childElementCount === 0) {+ if (this.protyle.wysiwyg.element.childElementCount === 0 && this.protyle.block.parentID) {const newID = Lute.NewNodeID();const emptyElement = genEmptyElement(false, false, newID);this.protyle.wysiwyg.element.append(emptyElement);