mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 02:21:38 +08:00
This commit is contained in:
parent
32e68973ca
commit
d8aa5b24c2
@ -241,7 +241,11 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle
|
|||||||
h: rect.height,
|
h: rect.height,
|
||||||
w: rect.width,
|
w: rect.width,
|
||||||
}, (unicode) => {
|
}, (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"));
|
}, target.querySelector("img"));
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
Loading…
Reference in New Issue
Block a user