Ticket #6297: 6297_rev.patch
File 6297_rev.patch, 909 bytes (added by , 13 years ago) |
---|
-
_source/core/dom/walker.js
1 /*1 /* 2 2 Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. 3 3 For licensing, see LICENSE.html or http://ckeditor.com/license 4 4 */ … … 342 342 var nodeNameMatches = CKEDITOR.tools.extend( {}, 343 343 blockBoundaryNodeNameMatch, customNodeNames || {} ); 344 344 345 346 //no matter of 'display' mode check if image has any neighbor 347 //if it has any do not break and keep all of them together 348 if( this.getName() == 'img' ) 349 { 350 if( this.getParent().getChildCount() > 1 ) 351 { 352 return false; 353 } 354 } 355 345 356 return blockBoundaryDisplayMatch[ this.getComputedStyle( 'display' ) ] || 346 357 nodeNameMatches[ this.getName() ]; 347 358 };