Ticket #3356: 3356.patch

File 3356.patch, 860 bytes (added by Garry Yao, 15 years ago)
  • _source/plugins/indent/plugin.js

     
    156156                var iterator = range.createIterator();
    157157                iterator.enforceRealBlocks = true;
    158158
    159                 range.enlarge( CKEDITOR.ENLARGE_BLOCK_CONTENTS );
    160                 var commonParent = range.getCommonAncestor(),
    161                         block;
    162 
     159                var block;
    163160                while ( ( block = iterator.getNextParagraph() ) )
    164161                {
    165                         // We don't want to indent subtrees recursively, so only perform the indent
    166                         // operation if the block itself is the nearestParent, or the block's parent
    167                         // is the commonParent.
    168                         if ( !( block.equals( commonParent ) || block.getParent().equals( commonParent ) ) )
    169                                 continue;
    170162
    171163                        if ( this.useIndentClasses )
    172164                        {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy