Ticket #5121: 5121_5.patch

File 5121_5.patch, 1.4 KB (added by brooks, 14 years ago)
  • _source/plugins/format/plugin.js

     
    2121                {
    2222                        var tag = tags[ i ];
    2323                        styles[ tag ] = new CKEDITOR.style( config[ 'format_' + tag ] );
     24                        styles[ tag ]._.enterMode = editor.config.enterMode;
    2425                }
    2526
    2627                editor.ui.addRichCombo( 'Format',
  • _source/plugins/styles/plugin.js

     
    752752
    753753                var iterator = range.createIterator();
    754754                iterator.enforceRealBlocks = true;
     755               
     756                // make recognize <br /> tag as a separator in ENTER_BR mode (#5121)
     757                if ( this._.enterMode )
     758                        iterator.enlargeBr = ( this._.enterMode != CKEDITOR.ENTER_BR );
    755759
    756760                var block;
    757761                var doc = range.document;
  • _source/plugins/stylescombo/plugin.js

     
    3434
    3535                                                        style = styles[ styleName ] = new CKEDITOR.style( styleDefinition );
    3636                                                        style._name = styleName;
     37                                                        style._.enterMode = config.enterMode;
    3738
    3839                                                        stylesList.push( style );
    3940                                                }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy