| 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | echo '// core' > wp-tinymce.js |
|---|
| 4 | cat tiny_mce.js >> wp-tinymce.js |
|---|
| 5 | |
|---|
| 6 | for file in `find . -name editor_template.js` |
|---|
| 7 | do |
|---|
| 8 | echo "// $file" >> wp-tinymce.js |
|---|
| 9 | cat $file >> wp-tinymce.js |
|---|
| 10 | echo '' >> wp-tinymce.js |
|---|
| 11 | done |
|---|
| 12 | |
|---|
| 13 | for file in `find . -name editor_plugin.js` |
|---|
| 14 | do |
|---|
| 15 | echo "// $file" >> wp-tinymce.js |
|---|
| 16 | cat $file >> wp-tinymce.js |
|---|
| 17 | echo '' >> wp-tinymce.js |
|---|
| 18 | done |
|---|
| 19 | |
|---|
| 20 | echo "// mark as loaded" >> wp-tinymce.js |
|---|
| 21 | cat >> wp-tinymce.js <<HERE |
|---|
| 22 | (function(){if('undefined'==tinyMCEPreInit)return;var b=tinyMCEPreInit,a=tinymce.ScriptLoader,f=b.mceInit.language,e=b.mceInit.theme,c=b.mceInit.plugins,d=b.suffix;a.markDone(b.base+"/langs/"+f+".js");a.markDone(b.base+"/themes/"+e+"/editor_template"+d+".js");a.markDone(b.base+"/themes/"+e+"/langs/"+f+".js");a.markDone(b.base+"/themes/"+e+"/langs/"+f+"_dlg.js");tinymce.each(c.split(","),function(g){if(g&&g.charAt(0)!="-"){a.markDone(b.base+"/plugins/"+g+"/editor_plugin"+d+".js");a.markDone(b.base+"/plugins/"+g+"/langs/"+f+".js");a.markDone(b.base+"/plugins/"+g+"/langs/"+f+"_dlg.js")}})})(); |
|---|
| 23 | HERE |
|---|
| 24 | |
|---|
| 25 | gzip wp-tinymce.js |
|---|