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/14870
Vanessaae4adfeba455
diff --git a/app/src/util/highlightById.ts b/app/src/util/highlightById.tsindex 1fab1ff399..31953d74dd 100644--- a/app/src/util/highlightById.ts+++ b/app/src/util/highlightById.ts@@ -1,4 +1,4 @@-import {hasClosestBlock, hasClosestByAttribute} from "../protyle/util/hasClosest";+import {hasClosestBlock, isInEmbedBlock} from "../protyle/util/hasClosest";import {focusByRange, getEditorRange} from "../protyle/util/selection";export const bgFade = (element: Element) => {@@ -22,7 +22,7 @@ export const highlightById = (protyle: IProtyle, id: string, top = false) => {}Array.from(protyleElement.querySelectorAll(`[data-node-id="${id}"]`)).find((item: HTMLElement) => {- if (!hasClosestByAttribute(item, "data-type", "block-render", true)) {+ if (!isInEmbedBlock(item)) {nodeElement = item;return true;}