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/13627
Vanessa0a53a7890086
diff --git a/app/src/layout/status.ts b/app/src/layout/status.tsindex 5e9e091fee..a82fcbfd6f 100644--- a/app/src/layout/status.ts+++ b/app/src/layout/status.ts@@ -163,7 +163,7 @@ export const countBlockWord = (ids: string[], rootID?: string, clearCache = falsif (document.getElementById("status").classList.contains("fn__none")) {return;}- if (getSelection().rangeCount > 0 && getSelection().getRangeAt(0).toString()) {+ if (getSelection().rangeCount > 0 && getSelection().getRangeAt(0).toString() && ids.length === 0) {countSelectWord(getSelection().getRangeAt(0));return;}diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 776a2225ea..a496d3c685 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -2118,7 +2118,7 @@ export class WYSIWYG {if (event.eventPhase !== 3 && !event.shiftKey && (event.key.indexOf("Arrow") > -1 || event.key === "Home" || event.key === "End" || event.key === "PageUp" || event.key === "PageDown") && !event.isComposing) {if (nodeElement) {this.setEmptyOutline(protyle, nodeElement);- if (range.toString() === "") {+ if (range.toString() === "" && !nodeElement.classList.contains("protyle-wysiwyg--select")) {countSelectWord(range, protyle.block.rootID);}if (protyle.breadcrumb) {