Ticket #2947: 2947.patch

File 2947.patch, 1.5 KB (added by Martin Kou, 15 years ago)
  • _source/plugins/indent/plugin.js

     
    159159                range.enlarge( CKEDITOR.ENLARGE_BLOCK_CONTENTS );
    160160                var commonParent = range.getCommonAncestor(),
    161161                        block;
    162 
     162               
    163163                while ( ( block = iterator.getNextParagraph() ) )
    164164                {
    165165                        // We don't want to indent subtrees recursively, so only perform the indent
     
    202202                                currentOffset = Math.max( currentOffset, 0 );
    203203                                currentOffset = Math.ceil( currentOffset / editor.config.indentOffset ) * editor.config.indentOffset;
    204204                                block.setStyle( this.indentCssProperty, currentOffset ? currentOffset + editor.config.indentUnit : '' );
    205                                 if ( block.getAttribute( 'style' ) == '' )
     205                                if ( block.$.style.cssText == '' )
    206206                                        block.removeAttribute( 'style' );
    207207                        }
    208208                }
  • _source/core/htmlparser/element.js

     
    124124                                writer.write( attributes._cke_replacedata );
    125125                                return;
    126126                        }
     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();
    127132               
    128133                        // Open element tag.
    129134                        writer.openTag( this.name, this.attributes );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy