Parcourir la source

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

Vanessa il y a 1 an
Parent
commit
353fdc7b29
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/src/protyle/wysiwyg/index.ts

+ 1 - 1
app/src/protyle/wysiwyg/index.ts

@@ -2095,7 +2095,7 @@ export class WYSIWYG {
                 return;
             }
 
-            if (aElement) {
+            if (aElement && range.toString() === "") {
                 event.stopPropagation();
                 event.preventDefault();
                 let linkAddress = Lute.UnEscapeHTMLStr(aLink);