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/17129
Vanessa87bd6267b7af
diff --git a/app/src/search/util.ts b/app/src/search/util.tsindex 4449fd2076..a953165e75 100644--- a/app/src/search/util.ts+++ b/app/src/search/util.ts@@ -941,7 +941,8 @@ export const openSearchEditor = (options: {const rangeBlockElement = hasClosestBlock(currentRange.startContainer);if (rangeBlockElement) {options.id = rangeBlockElement.getAttribute("data-node-id");- const offset = getSelectionOffset(getContenteditableElement(rangeBlockElement), null, options.protyle.highlight.ranges[options.protyle.highlight.rangeIndex]);+ const offset = getSelectionOffset(getContenteditableElement(rangeBlockElement) || rangeBlockElement,+ null, options.protyle.highlight.ranges[options.protyle.highlight.rangeIndex]);const scrollAttr: IScrollAttr = {rootId: options.protyle.block.rootID,focusId: options.id,