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/16911
Vanessabcb725f0adf5
diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.tsindex fd411e3a79..783522e4ff 100644--- a/app/src/protyle/util/onGet.ts+++ b/app/src/protyle/util/onGet.ts@@ -482,7 +482,7 @@ const focusElementById = (protyle: IProtyle, action: string[], scrollAttr?: IScrif (scrollAttr && scrollAttr.focusId) {range = focusByOffset(focusElement, scrollAttr.focusStart, scrollAttr.focusEnd) as Range;} else {- focusBlock(focusElement, undefined, action.includes(Constants.CB_GET_OUTLINE) ? false : true);+ range = focusBlock(focusElement, undefined, !action.includes(Constants.CB_GET_OUTLINE)) as Range;}/// #if !MOBILEif (!action.includes(Constants.CB_GET_UNUNDO)) {diff --git a/app/src/protyle/wysiwyg/getBlock.ts b/app/src/protyle/wysiwyg/getBlock.tsindex 9473c65ee6..3cb81d851c 100644--- a/app/src/protyle/wysiwyg/getBlock.ts+++ b/app/src/protyle/wysiwyg/getBlock.ts@@ -82,6 +82,9 @@ export const getContenteditableElement = (element: Element): Element => {if (!element) {return element;}+ if (element.classList.contains("protyle-title__input")) {+ return element;+ }let blockElement = element;if (!blockElement.getAttribute("data-node-id")) {blockElement = element.querySelector("[data-node-id]");