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/16917
Vanessa45e6ee96c127
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.tsindex f23ece28f9..a1ba01173e 100644--- a/app/src/protyle/toolbar/index.ts+++ b/app/src/protyle/toolbar/index.ts@@ -860,7 +860,7 @@ export class Toolbar {if (!nodeElement) {return;}- hideElements(["hint"], protyle);+ hideElements(["hint", "select"], protyle);window.siyuan.menus.menu.remove();const id = nodeElement.getAttribute("data-node-id");const types = (renderElement.getAttribute("data-type") || "").split(" ");@@ -1103,8 +1103,19 @@ export class Toolbar {}});this.subElementCloseCB = () => {+ protyle.wysiwyg.element.focus({ preventScroll: true});if (!renderElement.parentElement || protyle.disabled ||(oldTextValue === textElement.value && textElement.value)) {+ if (renderElement.tagName === "SPAN") {+ if (renderElement.parentElement) {+ this.range.setStartAfter(renderElement);+ this.range.collapse(true);+ focusByRange(this.range);+ }+ } else {+ focusBlock(renderElement);+ renderElement.classList.add("protyle-wysiwyg--select");+ }return;}let inlineLastNode: Element;