Make WordPress Core

Changeset 6791


Ignore:
Timestamp:
02/11/2008 08:19:29 PM (19 years ago)
Author:
ryan
Message:

tinyMCE compressor update from azaozz. see #5807

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/tiny_mce_ext.js

    r6790 r6791  
    4444        });
    4545};
    46        
    47     tinyMCE_GZ.start = function() {
    48                 var t = this, each = tinymce.each, s = t.settings, sl = tinymce.ScriptLoader, ln = s.languages.split(',');
    49 
    50                 function load(u, sp) {
    51                         var o;
    52 
    53                         if (!sp)
    54                                 u = t.baseURL + u;
    55 
    56                         o = {url : u, state : 2};
    57                         sl.queue.push(o);
    58                         sl.lookup[o.url] = o;
    59                 };
    60 
    61                 // Add core languages
    62                 each (ln, function(c) {
    63                         if (c)
    64                                 load('/langs/' + c + '.js');
    65                 });
    66 
    67                 // Add themes with languages
    68                 each(s.themes.split(','), function(n) {
    69                         if (n) {
    70                                 load('/themes/' + n + '/editor_template' + s.suffix + '.js');
    71 
    72                                 each (ln, function(c) {
    73                                         if (c)
    74                                                 load('/themes/' + n + '/langs/' + c + '.js');
    75                                 });
    76                         }
    77                 });
    78 
    79                 // Add plugins with languages
    80                 each(s.plugins.split(','), function(n) {
    81                         if (n && n.charAt(0) != '-') {
    82                                 load('/plugins/' + n + '/editor_plugin' + s.suffix + '.js');
    83 
    84                                 each (ln, function(c) {
    85                                         if (c)
    86                                                 load('/plugins/' + n + '/langs/' + c + '.js');
    87                                 });
    88                         }
    89                 });
    90         };
    91 //      tinyMCE_GZ.end = function() {};
Note: See TracChangeset for help on using the changeset viewer.