From 9559d8ba8f1b413bb39320a984cade872fb4034f Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 29 Jun 2025 17:01:12 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/15161 --- app/src/protyle/wysiwyg/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index b1b0b5c33..0852fb68d 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -624,12 +624,12 @@ export class WYSIWYG { if (galleryItemElement) { return; } - + const avDragFillElement = hasClosestByClassName(target, "av__drag-fill"); // https://github.com/siyuan-note/siyuan/issues/3026 hideElements(["select"], protyle); if (hasClosestByAttribute(target, "data-type", "av-gallery-more")) { clearSelect(["img", "row", "cell"], protyle.wysiwyg.element); - } else if (!hasClosestByClassName(target, "av__firstcol")) { + } else if (!hasClosestByClassName(target, "av__firstcol") && !avDragFillElement) { clearSelect(["img", "av"], protyle.wysiwyg.element); } @@ -698,7 +698,6 @@ export class WYSIWYG { return; } // av drag fill - const avDragFillElement = hasClosestByClassName(target, "av__drag-fill"); if (!protyle.disabled && avDragFillElement) { if (!nodeElement) { return;