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(); } });