From 24285aae568375e71f8b9571ffcd7b2397ad7ce2 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 11 Sep 2025 22:27:51 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/15821 --- 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 8fc957f41..0bbc4baa3 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -1741,7 +1741,7 @@ export class WYSIWYG { } const range = getSelection().getRangeAt(0); if (this.element === range.startContainer || this.element.contains(range.startContainer)) { - protyle.toolbar.range = range; + protyle.toolbar.range = range.cloneRange(); } });