Vanessa 2025-01-04 22:34:33 +08:00
parent 32e68973ca
commit d8aa5b24c2

View File

@ -241,7 +241,11 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle
h: rect.height,
w: rect.width,
}, (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();