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/17467
Vanessadf92f92179aa
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex 1bd55a0768..441d295968 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -139,8 +139,8 @@ const moveTo = async (protyle: IProtyle, sourceElements: Element[], targetElemennewSourceElements.push(copyElement);}} else {- const topSourceElement = getTopAloneElement(item);- const oldSourceParentElement = item.parentElement;+ let topSourceElement = getTopAloneElement(item);+ const oldSourceParentElement = getParentBlock(item);if (item.classList.contains("li") && item.getAttribute("data-subtype") === "o") {orderListElements[item.parentElement.getAttribute("data-node-id")] = item.parentElement;}@@ -163,7 +163,10 @@ const moveTo = async (protyle: IProtyle, sourceElements: Element[], targetElemen}if (topSourceElement !== item) {- // 删除空元素+ if (topSourceElement.contains(item)) {+ topSourceElement = getTopAloneElement(oldSourceParentElement);+ }+ // 拖拽后剩下空元素doOperations.push({action: "delete",id: topSourceElement.getAttribute("data-node-id"),