From d8aa5b24c29ddecf596c36cd8c184b4f3e1d54b5 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 4 Jan 2025 22:34:33 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13692 --- app/src/protyle/render/av/action.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts index a4121914a..81626a516 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();