Vanessa 2025-07-03 16:39:49 +08:00
parent 75949ba7d9
commit af34ac7af7

View file

@ -1970,6 +1970,9 @@ export class WYSIWYG {
}
const avGalleryItemElement = hasClosestByClassName(target, "av__gallery-item");
if (avGalleryItemElement) {
if (protyle.disabled) {
return false;
}
const menu = openGalleryItemMenu({
target: avGalleryItemElement.querySelector(".protyle-icon--last"),
blockElement: nodeElement,
@ -1982,7 +1985,7 @@ export class WYSIWYG {
});
event.stopPropagation();
event.preventDefault();
return;
return false;
}
const avCellElement = hasClosestByClassName(target, "av__cell");
if (avCellElement) {