Ticket #3356: 3356.patch
File 3356.patch, 860 bytes (added by , 15 years ago) |
---|
-
_source/plugins/indent/plugin.js
156 156 var iterator = range.createIterator(); 157 157 iterator.enforceRealBlocks = true; 158 158 159 range.enlarge( CKEDITOR.ENLARGE_BLOCK_CONTENTS ); 160 var commonParent = range.getCommonAncestor(), 161 block; 162 159 var block; 163 160 while ( ( block = iterator.getNextParagraph() ) ) 164 161 { 165 // We don't want to indent subtrees recursively, so only perform the indent166 // operation if the block itself is the nearestParent, or the block's parent167 // is the commonParent.168 if ( !( block.equals( commonParent ) || block.getParent().equals( commonParent ) ) )169 continue;170 162 171 163 if ( this.useIndentClasses ) 172 164 {