Index: _source/plugins/selection/plugin.js =================================================================== --- _source/plugins/selection/plugin.js (revision 6914) +++ _source/plugins/selection/plugin.js (revision ) @@ -78,6 +78,12 @@ && node.getName() in CKEDITOR.dtd.$removeEmpty; } + function singletonBlock( node ) + { + var body = range.document.getBody(); + return !node.is( 'body' ) && body.getChildCount() == 1; + } + var start = range.startContainer, offset = range.startOffset; @@ -86,7 +92,9 @@ // 1. Empty inline element. ^ // 2. Adjoin to inline element.
text^
- return !CKEDITOR.tools.trim( start.getHtml() ) ? isInlineCt( start ) : isInlineCt( start.getChild( offset - 1 ) ) || isInlineCt( start.getChild( offset ) ); + // 3. The only empty block in document.^
(#7222) + return !CKEDITOR.tools.trim( start.getHtml() ) ? isInlineCt( start ) || singletonBlock( start ) + : isInlineCt( start.getChild( offset - 1 ) ) || isInlineCt( start.getChild( offset ) ); } var selectAllCmd =