Ticket #4547: 4547.patch

File 4547.patch, 916 bytes (added by garry.yao, 2 years ago)
  • _source/core/editor.js

     
    123123                // Fire the "configLoaded" event. 
    124124                editor.fireOnce( 'configLoaded' ); 
    125125 
     126                // Load skin and theme once skin config is known.(#4547) 
     127                loadSkin( editor ); 
     128 
    126129                // Load language file. 
    127130                loadLang( editor ); 
    128131        }; 
     
    246249 
    247250                                                // Load the editor skin. 
    248251                                                editor.fire( 'pluginsLoaded' ); 
    249                                                 loadSkin( editor ); 
     252 
     253                                                // Load theme once plugins are loaded. 
     254                                                loadTheme( editor ); 
     255 
    250256                                        }); 
    251257                        }); 
    252258        }; 
    253259 
    254260        var loadSkin = function( editor ) 
    255261        { 
    256                 CKEDITOR.skins.load( editor, 'editor', function() 
    257                         { 
    258                                 loadTheme( editor ); 
    259                         }); 
     262                CKEDITOR.skins.load( editor, 'editor' ); 
    260263        }; 
    261264 
    262265        var loadTheme = function( editor ) 
© 2003 – 2011 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy