2012-02-25 05:15:08 +01:00
|
|
|
(function(){
|
|
|
|
if ( typeof tinyMCEPreInit === 'undefined' )
|
2012-02-18 07:43:47 +01:00
|
|
|
return;
|
|
|
|
|
2012-02-19 02:46:48 +01:00
|
|
|
var t = tinyMCEPreInit, baseurl = t.base, markDone = tinymce.ScriptLoader.markDone, lang = t.ref.language,
|
|
|
|
theme = t.ref.theme, plugins = t.ref.plugins, suffix = t.suffix;
|
2012-02-18 07:43:47 +01:00
|
|
|
|
2012-02-19 02:46:48 +01:00
|
|
|
markDone( baseurl+'/langs/'+lang+'.js' );
|
|
|
|
markDone( baseurl+'/themes/'+theme+'/editor_template'+suffix+'.js' );
|
|
|
|
markDone( baseurl+'/themes/'+theme+'/langs/'+lang+'.js' );
|
|
|
|
markDone( baseurl+'/themes/'+theme+'/langs/'+lang+'_dlg.js' );
|
2012-02-18 07:43:47 +01:00
|
|
|
|
|
|
|
tinymce.each( plugins.split(','), function(plugin){
|
|
|
|
if ( plugin && plugin.charAt(0) != '-' ) {
|
2012-02-19 02:46:48 +01:00
|
|
|
markDone( baseurl+'/plugins/'+plugin+'/editor_plugin'+suffix+'.js' );
|
|
|
|
markDone( baseurl+'/plugins/'+plugin+'/langs/'+lang+'.js' );
|
|
|
|
markDone( baseurl+'/plugins/'+plugin+'/langs/'+lang+'_dlg.js' )
|
2012-02-18 07:43:47 +01:00
|
|
|
}
|
|
|
|
});
|
|
|
|
})();
|