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:
parent
474847872c
commit
137c8f0b17
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue