An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:recycle: https://github.com/siyuan-note/siyuan/issues/4866
Vanessa688ce5e6b05d
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex 8dae2b501c..230c7a7df7 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -492,12 +492,8 @@ const dragSb = async (protyle: IProtyle, sourceElements: Element[], targetElemenoriginSbSet.forEach(sb => {refreshSbAndPersistWidth(sb, doOperations, undoOperations);});- if (isSameDoc || isCopy) {- transaction(protyle, doOperations, undoOperations);- } else {- // 跨文档移动为可逆条目:全局撤销栈按 rootID 分栈联动,撤销时经 mutatedRootIDs 判定弹确认- transaction(protyle, doOperations, undoOperations);- }+ // 跨文档移动为可逆条目:全局撤销栈按 rootID 分栈联动,撤销时经 mutatedRootIDs 判定弹确认+ transaction(protyle, doOperations, undoOperations);if (document.contains(sourceElements[0])) {focusBlock(sourceElements[0]);} else {@@ -605,12 +601,8 @@ const dragSame = async (protyle: IProtyle, sourceElements: Element[], targetElemdoOperations.push(...mergeOperations.doOperations);undoOperations.splice(0, 0, ...mergeOperations.undoOperations);}- if (isSameDoc || isCopy) {- transaction(protyle, doOperations, undoOperations);- } else {- // 跨文档移动为可逆条目:全局撤销栈按 rootID 分栈联动,撤销时经 mutatedRootIDs 判定弹确认- transaction(protyle, doOperations, undoOperations);- }+ // 跨文档移动为可逆条目:全局撤销栈按 rootID 分栈联动,撤销时经 mutatedRootIDs 判定弹确认+ transaction(protyle, doOperations, undoOperations);if (document.contains(sourceElements[0])) {focusBlock(sourceElements[0]);} else {