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/6239
Vanessa941fb7b514d1
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex 88b791b6fd..5a22f37e37 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -295,6 +295,19 @@ const dragSame = (protyle: IProtyle, sourceElements: Element[], targetElement: E});});undoOperations.reverse();+ if (newSourceElement.getAttribute("data-subtype") === "o") {+ undoOperations.splice(0, 0,{+ action: "update",+ id: newSourceElement.getAttribute("data-node-id"),+ data: newSourceElement.outerHTML+ });+ updateListOrder(newSourceElement, 1);+ doOperations.push({+ action: "update",+ id: newSourceElement.getAttribute("data-node-id"),+ data: newSourceElement.outerHTML+ });+ }undoOperations.push({action: "delete",id: newSourceElement.getAttribute("data-node-id"),@@ -369,6 +382,19 @@ const dragSame = (protyle: IProtyle, sourceElements: Element[], targetElement: E});});undoOperations.reverse();+ if (newSourceElement.getAttribute("data-subtype") === "o") {+ undoOperations.splice(0, 0,{+ action: "update",+ id: newSourceElement.getAttribute("data-node-id"),+ data: newSourceElement.outerHTML+ });+ updateListOrder(newSourceElement, 1);+ doOperations.push({+ action: "update",+ id: newSourceElement.getAttribute("data-node-id"),+ data: newSourceElement.outerHTML+ });+ }undoOperations.push({action: "delete",id: newSourceElement.getAttribute("data-node-id"),