Ticket #4272: 4272_2.patch

File 4272_2.patch, 1.3 KB (added by m.nguyen, 2 years ago)
  • _source/plugins/toolbar/plugin.js

     
    151151                                                                output.push( '<div class="cke_break"></div>' ); 
    152152                                                                continue; 
    153153                                                        } 
     154                                                         
     155                                                        var cssFloat = ( CKEDITOR.config.contentsLangDirection == 'ltr' ) ? 'left' : 'right'; 
     156                                                        output.push( '<span id="', toolbarId, '" class="cke_toolbar" style="float:', cssFloat ,'"><span class="cke_toolbar_start"></span>' ); 
    154157 
    155                                                         output.push( '<span id="', toolbarId, '" class="cke_toolbar"><span class="cke_toolbar_start"></span>' ); 
    156  
    157158                                                        // Add the toolbar to the "editor.toolbox.toolbars" 
    158159                                                        // array. 
    159160                                                        var index = toolbars.push( toolbarObj ) - 1; 
     
    269270 
    270271                                                                        modes : { wysiwyg : 1, source : 1 } 
    271272                                                                } ); 
    272  
     273                                                         
     274                                                        var flipFloat = ( CKEDITOR.config.contentsLangDirection == 'ltr' ) ? 'right' : 'left'; 
    273275                                                        output.push( '<a title="' + ( expanded ? editor.lang.toolbarCollapse : editor.lang.toolbarExpand ) 
     276                                                                                                          + '" style="float:' + flipFloat 
    274277                                                                                                          + '" id="' + collapserId + '" class="cke_toolbox_collapser' ); 
    275278 
    276279                                                        if ( !expanded ) 
© 2003 – 2011 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy