mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 14:28:49 +01:00
🐛 自定义表情作为文档图片的时候,点击不显示切换 emoji 面板
This commit is contained in:
parent
5d3bfbabff
commit
56e4ab4d39
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue