From 7f9d00fbf1a2f3f56f6a4545f08577a6e5dc3e43 Mon Sep 17 00:00:00 2001 From: Jeffrey Chen <78434827+TCOTC@users.noreply.github.com> Date: Mon, 3 Feb 2025 17:27:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=A8=E8=A1=8C=E7=BA=A7=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E4=B8=8A=E9=80=89=E6=8B=A9=E6=96=87=E6=9C=AC=E6=97=B6?= =?UTF-8?q?=E4=B8=8D=E6=89=93=E5=BC=80=E6=90=9C=E7=B4=A2=20(#13976)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix https://github.com/siyuan-note/siyuan/issues/13862 --- 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 faae12fa8..671e6478e 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -2388,7 +2388,7 @@ export class WYSIWYG { } const tagElement = hasClosestByAttribute(event.target, "data-type", "tag"); - if (tagElement && !event.altKey && !event.shiftKey) { + if (tagElement && !event.altKey && !event.shiftKey && range.toString() === "") { /// #if !MOBILE openGlobalSearch(protyle.app, `#${tagElement.textContent}#`, !ctrlIsPressed, {method: 0}); hideElements(["dialog"]);