home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Blogs / wordpress2.6.exe / wordpress2.6 / wp-includes / js / tinymce / tiny_mce_ext.js < prev    next >
Encoding:
Text File  |  2008-06-04  |  1007 b   |  36 lines

  1. tinyMCEPreInit.start = function() {
  2.     var t = this, each = tinymce.each, s = t.settings, sl = tinymce.ScriptLoader, ln = s.languages, th = s.themes;
  3.  
  4.     function load(u, sp) {
  5.         var o;
  6.  
  7.         if (!sp)
  8.             u = t.base + u;
  9.  
  10.         o = {url : u, state : 2};
  11.         sl.queue.push(o);
  12.         sl.lookup[o.url] = o;
  13.     };
  14.  
  15.     sl.markDone(t.base + '/langs/' + ln + '.js');
  16.  
  17.     load('/themes/' + th + '/editor_template' + t.suffix + '.js');
  18.     sl.markDone(t.base + '/themes/' + th + '/langs/' + ln + '.js');
  19.     sl.markDone(t.base + '/themes/' + th + '/langs/' + ln + '_dlg.js');
  20.  
  21.     each(s.plugins.split(','), function(n) {
  22.         if (n && n.charAt(0) != '-') {
  23.             load('/plugins/' + n + '/editor_plugin' + t.suffix + '.js');
  24.  
  25.             sl.markDone(t.base + '/plugins/' + n + '/langs/' + ln + '.js');
  26.             sl.markDone(t.base + '/plugins/' + n + '/langs/' + ln + '_dlg.js');
  27.         }
  28.     });
  29. };
  30. tinyMCEPreInit.load_ext = function(url,lang) {
  31.     var sl = tinymce.ScriptLoader;
  32.  
  33.     sl.markDone(url + '/langs/' + lang + '.js');
  34.     sl.markDone(url + '/langs/' + lang + '_dlg.js');
  35. };
  36.