From 137c8f0b174d9db435761df5b9565d39058cffa8 Mon Sep 17 00:00:00 2001 From: Neil Jenkins Date: Wed, 22 Feb 2023 11:14:16 +1100 Subject: [PATCH] Consistently focus after removeAllFormatting --- source/Editor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Editor.ts b/source/Editor.ts index bad81b6..aef0e2a 100644 --- a/source/Editor.ts +++ b/source/Editor.ts @@ -2739,7 +2739,7 @@ class Squire { range = this.getSelection(); } if (range.collapsed) { - return this; + return this.focus(); } const root = this._root; @@ -2752,7 +2752,7 @@ class Squire { stopNode = root; } if (stopNode instanceof Text) { - return this; + return this.focus(); } // Record undo point