Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/13692

Vanessad8aa5b24c29d
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index a4121914ae..81626a516b 100644
--- a/app/src/protyle/render/av/action.ts
+++ b/app/src/protyle/render/av/action.ts
@@ -241,7 +241,11 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle
h: rect.height,
w: rect.width,
}, (unicode) => {
- target.innerHTML = unicode2Emoji(unicode);
+ if (target.parentElement.classList.contains("av__cell--relation")) {
+ target.innerHTML = unicode2Emoji(unicode || window.siyuan.storage[Constants.LOCAL_IMAGES].file);
+ } else {
+ target.innerHTML = unicode2Emoji(unicode);
+ }
}, target.querySelector("img"));
event.preventDefault();
event.stopPropagation();