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: Open local file links from database attribute panel https://github.com/siyuan-note/siyuan/issues/19753
Daniel27a417aec573
diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.tsindex 5ea5573f8f..df327464ed 100644--- a/app/src/protyle/render/av/blockAttr.ts+++ b/app/src/protyle/render/av/blockAttr.ts@@ -356,6 +356,14 @@ export const renderAVAttribute = (element: HTMLElement, id: string, protyle: IPrif (handleTemplateInteraction(protyle, event) || handleRichTextInteraction(protyle, event)) {return;}+ const urlElement = (event.target as HTMLElement).closest<HTMLAnchorElement>(+ '.custom-attr__avvalue[data-type="url"] > a[href]');+ if (urlElement) {+ openLink(protyle.app, urlElement.getAttribute("href"), event, event.ctrlKey || event.metaKey);+ event.preventDefault();+ event.stopPropagation();+ return;+ }const databaseElement = hasClosestByClassName(event.target as HTMLElement, "popover__block");if (databaseElement && isTouchDevice() && !isLastPointerMouse() &&hasClosestByClassName(databaseElement, "custom-attr__avheader")) {