X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fcore%2Fdom%2Fwalker.js;h=126f3f205819972d2dfc656dcc7a83530d41293c;hp=ae9dfec31e1dcda5df1218ea0966a727c608ae70;hb=614511639979907ceb0da3614122a4d8eb963ad4;hpb=039a051ccf3901311661022a30afd60fc38130c9 diff --git a/_source/core/dom/walker.js b/_source/core/dom/walker.js index ae9dfec..126f3f2 100644 --- a/_source/core/dom/walker.js +++ b/_source/core/dom/walker.js @@ -334,16 +334,15 @@ For licensing, see LICENSE.html or http://ckeditor.com/license 'table-column' : 1, 'table-cell' : 1, 'table-caption' : 1 - }, - blockBoundaryNodeNameMatch = { hr : 1 }; + }; CKEDITOR.dom.element.prototype.isBlockBoundary = function( customNodeNames ) { - var nodeNameMatches = CKEDITOR.tools.extend( {}, - blockBoundaryNodeNameMatch, customNodeNames || {} ); + var nodeNameMatches = CKEDITOR.tools.extend( {}, CKEDITOR.dtd.$block, customNodeNames || {} ); - return blockBoundaryDisplayMatch[ this.getComputedStyle( 'display' ) ] || - nodeNameMatches[ this.getName() ]; + // Don't consider floated formatting as block boundary, fall back to dtd check in that case. (#6297) + return this.getComputedStyle( 'float' ) == 'none' && blockBoundaryDisplayMatch[ this.getComputedStyle( 'display' ) ] + || nodeNameMatches[ this.getName() ]; }; CKEDITOR.dom.walker.blockBoundary = function( customNodeNames )