mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-08 03:40:20 +01:00
a87fec4616
props mdbitz. fixes ##26011, #26012, #26013, #26014, #26038, #26039. Built from https://develop.svn.wordpress.org/trunk@26195 git-svn-id: http://core.svn.wordpress.org/trunk@26103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
22 lines
840 B
JavaScript
22 lines
840 B
JavaScript
/* global tinyMCEPreInit, tinymce */
|
|
(function(){
|
|
if ( typeof tinyMCEPreInit === 'undefined' )
|
|
return;
|
|
|
|
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;
|
|
|
|
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' );
|
|
|
|
tinymce.each( plugins.split(','), function(plugin){
|
|
if ( plugin && plugin.charAt(0) != '-' ) {
|
|
markDone( baseurl+'/plugins/'+plugin+'/editor_plugin'+suffix+'.js' );
|
|
markDone( baseurl+'/plugins/'+plugin+'/langs/'+lang+'.js' );
|
|
markDone( baseurl+'/plugins/'+plugin+'/langs/'+lang+'_dlg.js' );
|
|
}
|
|
});
|
|
})();
|