0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00

Consistently focus after removeAllFormatting

This commit is contained in:
Neil Jenkins 2023-02-22 11:14:16 +11:00
parent 474847872c
commit 137c8f0b17

View file

@ -2739,7 +2739,7 @@ class Squire {
range = this.getSelection(); range = this.getSelection();
} }
if (range.collapsed) { if (range.collapsed) {
return this; return this.focus();
} }
const root = this._root; const root = this._root;
@ -2752,7 +2752,7 @@ class Squire {
stopNode = root; stopNode = root;
} }
if (stopNode instanceof Text) { if (stopNode instanceof Text) {
return this; return this.focus();
} }
// Record undo point // Record undo point