🐛 自定义表情作为文档图片的时候,点击不显示切换 emoji 面板

This commit is contained in:
Vanessa 2024-01-31 10:10:05 +08:00
parent 5d3bfbabff
commit 56e4ab4d39

View file

@ -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);