Ticket #4046: 4046.patch

File 4046.patch, 794 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/justify/plugin.js

     
    6666        justifyCommand.prototype = {
    6767                exec : function( editor )
    6868                {
    69                         var selection = editor.getSelection();
     69                        var selection = editor.getSelection(),
     70                                        enterMode = editor.config.enterMode;
     71
    7072                        if ( !selection )
    7173                                return;
    7274
     
    8082                        for ( var i = ranges.length - 1 ; i >= 0 ; i-- )
    8183                        {
    8284                                iterator = ranges[ i ].createIterator();
     85                                iterator.enlargeBr = enterMode != CKEDITOR.ENTER_BR;
     86                               
    8387                                while ( ( block = iterator.getNextParagraph() ) )
    8488                                {
    8589                                        block.removeAttribute( 'align' );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy