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/14663
Vanessa8911ede1b3e4
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 9785e8e23b..e2bf8143a1 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -1427,6 +1427,15 @@ export class WYSIWYG {if (!nodeElement) {return;}+ // 块划选时原生文字选区会在 Windows 上跨块扩展(macOS 不会),需实时收回起点块,避免拖动中可见 AB 之间的文字被选中+ if (getSelection().rangeCount > 0) {+ const range = getSelection().getRangeAt(0);+ const startBlockElement = hasClosestBlock(range.startContainer);+ const endBlockElement = hasClosestBlock(range.endContainer);+ if (startBlockElement && endBlockElement && startBlockElement !== endBlockElement) {+ range.collapse(false);+ }+ }protyle.selectElement.classList.remove("fn__none");// 向左选择,遇到 gutter 就不会弹出 toolbarhideElements(["gutter"], protyle);