diff --git a/source/Range.js b/source/Range.js index bcc4f2a..bf02668 100644 --- a/source/Range.js +++ b/source/Range.js @@ -172,7 +172,7 @@ var deleteContentsOfRange = function ( range, root ) { fixCursor( root, root ); range.selectNodeContents( root.firstChild ); } else { - range.collapse( false ); + range.collapse( range.endContainer === root ? true : false ); } return frag; };