Ticket #6297: 6297_2.patch
File 6297_2.patch, 1.1 KB (added by , 13 years ago) |
---|
-
_source/core/dom/walker.js
334 334 'table-column' : 1, 335 335 'table-cell' : 1, 336 336 'table-caption' : 1 337 }, 338 blockBoundaryNodeNameMatch = { hr : 1 }; 337 }; 339 338 340 339 CKEDITOR.dom.element.prototype.isBlockBoundary = function( customNodeNames ) 341 340 { 342 var nodeNameMatches = CKEDITOR.tools.extend( {}, 343 blockBoundaryNodeNameMatch, customNodeNames || {} ); 341 var nodeNameMatches = CKEDITOR.tools.extend( {}, CKEDITOR.dtd.$block, customNodeNames || {} ); 344 342 345 return blockBoundaryDisplayMatch[ this.getComputedStyle( 'display' ) ] || 346 nodeNameMatches[ this.getName() ]; 343 // Don't consider floated formatting as block boundary, fall back to dtd check in that case. (#6297) 344 return this.getComputedStyle( 'float' ) == 'none' && blockBoundaryDisplayMatch[ this.getComputedStyle( 'display' ) ] 345 || nodeNameMatches[ this.getName() ]; 347 346 }; 348 347 349 348 CKEDITOR.dom.walker.blockBoundary = function( customNodeNames )