From 353fdc7b29d7a3a686aa8a6eb4d1a819dd745f1e Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 31 Mar 2024 17:51:15 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/10808 --- app/src/protyle/wysiwyg/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 2219bd312..40edf923a 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/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);