An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: https://github.com/siyuan-note/siyuan/issues/5746
Vanessa35d0c63928bb
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 335edb4a56..ec7b638b0e 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -346,7 +346,8 @@ export class WYSIWYG {} else {if ((headElement.parentElement.childElementCount === 3 && headElement.parentElement.classList.contains("li")) ||(headElement.parentElement.childElementCount === 2 && (headElement.parentElement.classList.contains("bq") || headElement.parentElement.classList.contains("sb"))) ||- (headElement.parentElement.childElementCount === 1 && headElement.parentElement.classList.contains("protyle-wysiwyg"))) {+ (headElement.parentElement.childElementCount === 1 && headElement.parentElement.classList.contains("protyle-wysiwyg")) // 全选剪切标题+ ) {// https://github.com/siyuan-note/siyuan/issues/4040const emptyId = Lute.NewNodeID();const emptyElement = genEmptyElement(false, false, emptyId);@@ -354,7 +355,7 @@ export class WYSIWYG {id: emptyId,data: emptyElement.outerHTML,action: "insert",- parentID: headElement.parentElement.getAttribute("data-node-id")+ parentID: headElement.parentElement.getAttribute("data-node-id") || protyle.block.parentID});undoOperations.push({id: emptyId,