Skip to content

Commit

Permalink
🎨 fix #10808
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Mar 31, 2024
1 parent 275b4bb commit 353fdc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/protyle/wysiwyg/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2095,7 +2095,7 @@ export class WYSIWYG {
return;
}

if (aElement) {
if (aElement && range.toString() === "") {
event.stopPropagation();
event.preventDefault();
let linkAddress = Lute.UnEscapeHTMLStr(aLink);
Expand Down

0 comments on commit 353fdc7

Please sign in to comment.