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: https://github.com/siyuan-note/siyuan/issues/15998
Daniel8bc42cd121c5
diff --git a/app/src/protyle/util/selection.ts b/app/src/protyle/util/selection.tsindex c98a1c9971..59c7ae2ed0 100644--- a/app/src/protyle/util/selection.ts+++ b/app/src/protyle/util/selection.ts@@ -149,7 +149,8 @@ export const getEditorRange = (element: Element): Range => {}}// 移动端获取有偏差 https://github.com/siyuan-note/siyuan/issues/15998- if (getContenteditableElement(range.startContainer as Element)) {+ if ((range.startContainer as Element).getAttribute("contenteditable") !== "true" &&+ getContenteditableElement(range.startContainer as Element)) {const blockElement = hasClosestBlock(range.startContainer);if (blockElement) {const focusRange = focusBlock(blockElement);