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/12809
Vanessad173f26d3529
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex 555c4325cc..9dbf18c29e 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -573,13 +573,23 @@ const dragSb = async (protyle: IProtyle, sourceElements: Element[], targetElemen// 跨文档不支持撤销transaction(protyle, doOperations);}- if (direct === "col" && (sourceElements.length > 1 || hasFoldHeading) && !isCopy) {- turnsIntoOneTransaction({- protyle,- selectsElement: sourceElements.reverse(),- type: "BlocksMergeSuperBlock",- level: "row"- });+ if (!isCopy && direct === "col") {+ if (targetElement.getAttribute("data-type") === "NodeHeading" && targetElement.getAttribute("fold") === "1") {+ turnsIntoOneTransaction({+ protyle,+ selectsElement: [targetElement],+ type: "BlocksMergeSuperBlock",+ level: "row"+ });+ }+ if ((sourceElements.length > 1 || hasFoldHeading)) {+ turnsIntoOneTransaction({+ protyle,+ selectsElement: sourceElements.reverse(),+ type: "BlocksMergeSuperBlock",+ level: "row"+ });+ }}focusBlock(sourceElements[0]);};