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/6930
Vanessa6738cfdac9da
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex f2bc1ca483..5d09226aa8 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -141,11 +141,9 @@ const moveTo = async (protyle: IProtyle, sourceElements: Element[], targetElementopSourceElement = targetElement;}}- if (item.getAttribute("data-type") === "NodeHeading" && item.getAttribute("fold") === "1") {+ if (isCopy && item.getAttribute("data-type") === "NodeHeading" && item.getAttribute("fold") === "1") {item.removeAttribute("fold");- if (isCopy) {- foldHeadingIds.push({id, parentID});- }+ foldHeadingIds.push({id, parentID});}let copyId;let copyElement;@@ -359,11 +357,9 @@ const dragSb = async (protyle: IProtyle, sourceElements: Element[], targetElemenif (index === 0) {afterPreviousID = isCopy ? copyId : id;}- if (item.getAttribute("data-type") === "NodeHeading" && item.getAttribute("fold") === "1") {+ if (isCopy && item.getAttribute("data-type") === "NodeHeading" && item.getAttribute("fold") === "1") {item.removeAttribute("fold");- if (isCopy) {- foldHeadingIds.push({id, parentID});- }+ foldHeadingIds.push({id, parentID});}if (isCopy) {undoOperations.push({