summaryrefslogtreecommitdiffstatshomepage
path: root/src/wp-includes/js/tinymce/mark_loaded_src.js
diff options
context:
space:
mode:
authorAndrew Nacin <nacin@git.wordpress.org>2013-08-07 05:25:25 +0000
committerAndrew Nacin <nacin@git.wordpress.org>2013-08-07 05:25:25 +0000
commitb43712e0f79a9f5bea52217e06155e2f471c490c (patch)
tree23d331e7b2f29689571f03cfa5f9b7b3b6cafab8 /src/wp-includes/js/tinymce/mark_loaded_src.js
parent5bbd08e1d17079a2e852517351f7405884a156b3 (diff)
downloadwordpress-b43712e0f79a9f5bea52217e06155e2f471c490c.tar.gz
wordpress-b43712e0f79a9f5bea52217e06155e2f471c490c.zip
New develop.svn.wordpress.org repository based on the old core.svn repository.
* All WordPress files move to a src/ directory. * New task runner (Grunt), configured to copy a built WordPress to build/. * svn:ignore and .gitignore for Gruntfile.js, wp-config.php, and node.js. * Remove Akismet external from develop.svn. Still exists in core.svn. * Drop minified files from src/. The build process will now generate these. props koop. see #24976. and see http://wp.me/p2AvED-1AI. git-svn-id: https://develop.svn.wordpress.org/trunk@25001 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src/wp-includes/js/tinymce/mark_loaded_src.js')
-rw-r--r--src/wp-includes/js/tinymce/mark_loaded_src.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/wp-includes/js/tinymce/mark_loaded_src.js b/src/wp-includes/js/tinymce/mark_loaded_src.js
new file mode 100644
index 0000000000..2b53192671
--- /dev/null
+++ b/src/wp-includes/js/tinymce/mark_loaded_src.js
@@ -0,0 +1,20 @@
+(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' )
+ }
+ });
+})();