mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-12 10:14:21 +01:00
This commit is contained in:
parent
75949ba7d9
commit
af34ac7af7
1 changed files with 4 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue