Ticket #4046: 4046.patch
File 4046.patch, 794 bytes (added by , 13 years ago) |
---|
-
_source/plugins/justify/plugin.js
66 66 justifyCommand.prototype = { 67 67 exec : function( editor ) 68 68 { 69 var selection = editor.getSelection(); 69 var selection = editor.getSelection(), 70 enterMode = editor.config.enterMode; 71 70 72 if ( !selection ) 71 73 return; 72 74 … … 80 82 for ( var i = ranges.length - 1 ; i >= 0 ; i-- ) 81 83 { 82 84 iterator = ranges[ i ].createIterator(); 85 iterator.enlargeBr = enterMode != CKEDITOR.ENTER_BR; 86 83 87 while ( ( block = iterator.getNextParagraph() ) ) 84 88 { 85 89 block.removeAttribute( 'align' );