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: fix https://github.com/siyuan-note/siyuan/issues/7250
Vanessa7ad8e74e007d
diff --git a/app/src/block/util.ts b/app/src/block/util.tsindex f13954724f..67e750df15 100644--- a/app/src/block/util.ts+++ b/app/src/block/util.ts@@ -15,7 +15,8 @@ export const cancelSB = (protyle: IProtyle, nodeElement: Element) => {nodeElement.removeAttribute("select-start");nodeElement.removeAttribute("select-end");const id = nodeElement.getAttribute("data-node-id");- const sbElement = genSBElement(nodeElement.getAttribute("data-sb-layout"), id, nodeElement.lastElementChild.outerHTML);+ const sbElement = nodeElement.cloneNode() as HTMLElement;+ sbElement.innerHTML = nodeElement.lastElementChild.outerHTML;undoOperations.push({action: "insert",id,