From 26865386418108e10860970d1a6723404b0909fb Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 28 Jun 2022 17:51:51 +0800 Subject: [PATCH] :bug: --- app/src/protyle/wysiwyg/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 4780ea9f7..af10164b0 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -1714,7 +1714,9 @@ export class WYSIWYG { } else { hideElements(["toolbar"], protyle); } - countSelectWord(range); + if (!protyle.wysiwyg.element.querySelector(".protyle-wysiwyg--select")) { + countSelectWord(newRange); + } pushBack(protyle, newRange); }, isMobile() ? 520 : 0); // Android 双击慢了出不来