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: fix https://github.com/siyuan-note/siyuan/issues/10768
Vanessac11e943d4d8e
diff --git a/app/src/protyle/render/av/asset.ts b/app/src/protyle/render/av/asset.tsindex 583e2d301c..4e0a74dc92 100644--- a/app/src/protyle/render/av/asset.ts+++ b/app/src/protyle/render/av/asset.ts@@ -249,11 +249,6 @@ ${window.siyuan.languages.title}window.siyuan.menus.menu.append(new MenuItem(exportAsset(linkAddress)).element);}/// #endif- const textElements = menu.element.querySelectorAll("textarea");- if (textElements.length > 1) {- textElements[1].value = target.dataset.name;- textElements[0].value = linkAddress;- }const rect = target.getBoundingClientRect();menu.open({x: rect.right,@@ -261,6 +256,12 @@ ${window.siyuan.languages.title}w: rect.width,h: rect.height,});+ const textElements = menu.element.querySelectorAll("textarea");+ if (textElements.length > 1) {+ textElements[1].value = target.dataset.name;+ textElements[0].value = linkAddress;+ textElements[0].focus();+ }};export const addAssetLink = (protyle: IProtyle, data: IAV, cellElements: HTMLElement[], target: HTMLElement, blockElement: Element) => {@@ -300,6 +301,7 @@ ${window.siyuan.languages.title}w: target.parentElement.clientWidth + 8,h: rect.height,});+ menu.element.querySelector("textarea").focus();};export const dragUpload = (files: string[], protyle: IProtyle, cellElement: HTMLElement, avID: string) => {