Ticket #2947: 2947.patch
File 2947.patch, 1.5 KB (added by , 15 years ago) |
---|
-
_source/plugins/indent/plugin.js
159 159 range.enlarge( CKEDITOR.ENLARGE_BLOCK_CONTENTS ); 160 160 var commonParent = range.getCommonAncestor(), 161 161 block; 162 162 163 163 while ( ( block = iterator.getNextParagraph() ) ) 164 164 { 165 165 // We don't want to indent subtrees recursively, so only perform the indent … … 202 202 currentOffset = Math.max( currentOffset, 0 ); 203 203 currentOffset = Math.ceil( currentOffset / editor.config.indentOffset ) * editor.config.indentOffset; 204 204 block.setStyle( this.indentCssProperty, currentOffset ? currentOffset + editor.config.indentUnit : '' ); 205 if ( block. getAttribute( 'style' )== '' )205 if ( block.$.style.cssText == '' ) 206 206 block.removeAttribute( 'style' ); 207 207 } 208 208 } -
_source/core/htmlparser/element.js
124 124 writer.write( attributes._cke_replacedata ); 125 125 return; 126 126 } 127 128 // IE outputs style attribute in capital letters. We should convert them 129 // back to lower case. 130 if ( CKEDITOR.env.ie && attributes.style ) 131 attributes.style = attributes.style.toLowerCase(); 127 132 128 133 // Open element tag. 129 134 writer.openTag( this.name, this.attributes );