'table-column' : 1,\r
'table-cell' : 1,\r
'table-caption' : 1\r
- },\r
- blockBoundaryNodeNameMatch = { hr : 1 };\r
+ };\r
\r
CKEDITOR.dom.element.prototype.isBlockBoundary = function( customNodeNames )\r
{\r
- var nodeNameMatches = CKEDITOR.tools.extend( {},\r
- blockBoundaryNodeNameMatch, customNodeNames || {} );\r
+ var nodeNameMatches = CKEDITOR.tools.extend( {}, CKEDITOR.dtd.$block, customNodeNames || {} );\r
\r
- return blockBoundaryDisplayMatch[ this.getComputedStyle( 'display' ) ] ||\r
- nodeNameMatches[ this.getName() ];\r
+ // Don't consider floated formatting as block boundary, fall back to dtd check in that case. (#6297)\r
+ return this.getComputedStyle( 'float' ) == 'none' && blockBoundaryDisplayMatch[ this.getComputedStyle( 'display' ) ]\r
+ || nodeNameMatches[ this.getName() ];\r
};\r
\r
CKEDITOR.dom.walker.blockBoundary = function( customNodeNames )\r