From af34ac7af75f294d7b50dd517a9652164604d407 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 3 Jul 2025 16:39:49 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/15209 --- app/src/protyle/wysiwyg/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 5320c4650..8a067d41c 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -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) {