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/12906
Vanessaa86829515b9a
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.tsindex 7b5ce4a4b1..64c3e3b2df 100644--- a/app/src/menus/protyle.ts+++ b/app/src/menus/protyle.ts@@ -1324,7 +1324,11 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLElemewindow.siyuan.menus.menu.element.setAttribute("data-from", popoverElement ? popoverElement.dataset.level + "popover" : "app");if (!protyle.disabled) {const textElements = window.siyuan.menus.menu.element.querySelectorAll("textarea");- textElements[1].select();+ if (textElements[0].value) {+ textElements[1].select();+ } else {+ textElements[0].select();+ }window.siyuan.menus.menu.removeCB = () => {const ocrElement = window.siyuan.menus.menu.element.querySelector('[data-type="ocr"]') as HTMLTextAreaElement;if (ocrElement && ocrElement.dataset.ocrText !== ocrElement.value) {