An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/5525
Vanessa41e49713bd28
diff --git a/app/src/protyle/util/selection.ts b/app/src/protyle/util/selection.tsindex cd87f61822..30ef60014c 100644--- a/app/src/protyle/util/selection.ts+++ b/app/src/protyle/util/selection.ts@@ -95,7 +95,7 @@ export const getEditorRange = (element: Element) => {let range: Range;if (getSelection().rangeCount > 0) {range = getSelection().getRangeAt(0);- if (element.isEqualNode(range.startContainer) || element.contains(range.startContainer)) {+ if (element.isSameNode(range.startContainer) || element.contains(range.startContainer)) {return range;}}