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/14621
Vanessa9889ef7fb23d
diff --git a/app/src/protyle/util/selection.ts b/app/src/protyle/util/selection.tsindex 75c056e9a9..23086aa5cb 100644--- a/app/src/protyle/util/selection.ts+++ b/app/src/protyle/util/selection.ts@@ -644,7 +644,7 @@ export const focusBlock = (element: Element, parentElement?: HTMLElement, toStar} else {let focusHljs = false;// 定位到末尾 https://github.com/siyuan-note/siyuan/issues/5982- if (cursorElement.parentElement.classList.contains("hljs")) {+ if (element.getAttribute("data-type") === "NodeCodeBlock") {// 代码块末尾定位需在 /n 之前 https://github.com/siyuan-note/siyuan/issues/9141,https://github.com/siyuan-note/siyuan/issues/9189let lastNode = cursorElement.lastChild;if (!lastNode) {