Ticket #6297: 6297_rev.patch

File 6297_rev.patch, 909 bytes (added by Martin, 13 years ago)

Purpose of patch.

  • _source/core/dom/walker.js

     
    1 /*
     1/*
    22Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
    33For licensing, see LICENSE.html or http://ckeditor.com/license
    44*/
     
    342342                var nodeNameMatches = CKEDITOR.tools.extend( {},
    343343                                                                                                        blockBoundaryNodeNameMatch, customNodeNames || {} );
    344344
     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
    345356                return blockBoundaryDisplayMatch[ this.getComputedStyle( 'display' ) ] ||
    346357                        nodeNameMatches[ this.getName() ];
    347358        };
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy