mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 15:23:29 -05:00
Fix cursor when deleting range contents
This commit is contained in:
parent
feca3e4d8f
commit
143eea15cb
1 changed files with 5 additions and 0 deletions
|
@ -184,6 +184,11 @@ implement( Range, {
|
|||
startBlock.mergeWithBlock( endBlock, this );
|
||||
}
|
||||
|
||||
// Ensure block has necessary children
|
||||
if ( startBlock ) {
|
||||
startBlock.fixCursor();
|
||||
}
|
||||
|
||||
// Ensure body has a block-level element in it.
|
||||
var body = this.endContainer.ownerDocument.body,
|
||||
child = body.firstChild;
|
||||
|
|
Loading…
Reference in a new issue