mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
If deleting range to start/end of doc, collapse into a block
This commit is contained in:
parent
8850c76234
commit
30dc11fd3c
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ var deleteContentsOfRange = function ( range, root ) {
|
||||||
fixCursor( root, root );
|
fixCursor( root, root );
|
||||||
range.selectNodeContents( root.firstChild );
|
range.selectNodeContents( root.firstChild );
|
||||||
} else {
|
} else {
|
||||||
range.collapse( false );
|
range.collapse( range.endContainer === root ? true : false );
|
||||||
}
|
}
|
||||||
return frag;
|
return frag;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue