This commit is contained in:
Vanessa 2023-10-30 10:29:53 +08:00
parent 3cc5644991
commit 0745092dfe
2 changed files with 167 additions and 161 deletions

View file

@ -1335,7 +1335,7 @@ export class WYSIWYG {
return false;
}
}
if (!protyle.disabled && target.tagName === "IMG" && hasClosestByClassName(target, "img")) {
if (target.tagName === "IMG" && hasClosestByClassName(target, "img")) {
imgMenu(protyle, protyle.toolbar.range, target.parentElement.parentElement, {
clientX: x + 4,
clientY: y