mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🐛 自定义表情作为文档图片的时候,点击不显示切换 emoji 面板
This commit is contained in:
@@ -201,7 +201,7 @@ export class Background {
|
||||
|
||||
while (target && !target.isEqualNode(this.element)) {
|
||||
const type = target.getAttribute("data-type");
|
||||
if (target.tagName === "IMG") {
|
||||
if (target.tagName === "IMG" && target.parentElement.classList.contains("protyle-background__img")) {
|
||||
const imgSrc = target.getAttribute("src");
|
||||
if (event.detail > 1 && !imgSrc.startsWith("data:image/png;base64")) {
|
||||
previewImage(imgSrc);
|
||||
|
||||
Reference in New Issue
Block a user