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/15296
Vanessa049b4d4b4b13
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 916ce6b345..febd741c1d 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -1650,6 +1650,12 @@ export class WYSIWYG {}if (selectElement.length > 0) {range.collapse(true);+ if (range.commonAncestorContainer.nodeType === 1 &&+ range.startContainer.childNodes[range.startOffset] &&+ range.startContainer.childNodes[range.startOffset].nodeType === 1 &&+ (range.commonAncestorContainer as HTMLElement).classList.contains("protyle-wysiwyg")) {+ focusBlock(range.startContainer.childNodes[range.startOffset] as Element);+ }return;}const startBlockElement = hasClosestBlock(range.startContainer);