Browse Source

:art: fix https://github.com/siyuan-note/siyuan/issues/12585

Vanessa 9 months ago
parent
commit
6b030044a8
1 changed files with 6 additions and 3 deletions
  1. 6 3
      app/src/protyle/wysiwyg/index.ts

+ 6 - 3
app/src/protyle/wysiwyg/index.ts

@@ -2278,7 +2278,7 @@ export class WYSIWYG {
             }
 
             const embedItemElement = hasClosestByClassName(event.target, "protyle-wysiwyg__embed");
-            if (embedItemElement && !ctrlIsPressed) {
+            if (embedItemElement) {
                 const embedId = embedItemElement.getAttribute("data-id");
                 checkFold(embedId, (zoomIn, action) => {
                     /// #if MOBILE
@@ -2320,8 +2320,11 @@ export class WYSIWYG {
                     }
                     /// #endif
                 });
-                event.stopPropagation();
-                return;
+                // https://github.com/siyuan-note/siyuan/issues/12585
+                if (!ctrlIsPressed) {
+                    event.stopPropagation();
+                    return;
+                }
             }
 
             if (commonClick(event, protyle)) {