Ticket #5121: 5121_2.patch

File 5121_2.patch, 1.3 KB (added by brooks, 14 years ago)
  • _source/plugins/styles/plugin.js

     
    110110
    111111        CKEDITOR.style.prototype =
    112112        {
     113                setEditor : function( editor )
     114                {
     115                        this._.editor = editor;
     116                },
     117
    113118                apply : function( document )
    114119                {
    115120                        applyStyle.call( this, document, false );
     
    752757
    753758                var iterator = range.createIterator();
    754759                iterator.enforceRealBlocks = true;
     760                iterator.enlargeBr = ( this._.editor.config.enterMode != CKEDITOR.ENTER_BR );
    755761
    756762                var block;
    757763                var doc = range.document;
  • _source/plugins/stylescombo/plugin.js

     
    102102
    103103                                                var style = styles[ value ],
    104104                                                        selection = editor.getSelection();
    105 
     105                                               
    106106                                                var elementPath = new CKEDITOR.dom.elementPath( selection.getStartElement() );
    107107
     108                                                style.setEditor( editor );
     109
    108110                                                if ( style.type == CKEDITOR.STYLE_INLINE && style.checkActive( elementPath ) )
    109111                                                        style.remove( editor.document );
    110112                                                else
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy