Changeset 849


Ignore:
Timestamp:
06/03/07 12:51:48 (13 years ago)
Author:
gocher
Message:

change htmlarea to Xinha in plugin Filter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/Filter/filter.js

    r677 r849  
    1 // Filter plugin for HTMLArea 
     1// Filter plugin for Xinha 
    22// Implementation by Udo Schmal & Schaffrath NeueMedien 
    33// Original Author - Udo Schmal 
     
    1212  // register the toolbar buttons provided by this plugin 
    1313  cfg.registerButton({ 
    14   id: "filter", 
    15   tooltip  : this._lc("Filter"), 
    16   image    : editor.imgURL("ed_filter.gif", "Filter"), 
    17   textMode : false, 
    18   action   : function(editor) { 
    19                self.buttonPress(editor); 
    20              } 
     14    id: "filter", 
     15    tooltip  : this._lc("Filter"), 
     16    image    : editor.imgURL("ed_filter.gif", "Filter"), 
     17    textMode : false, 
     18    action   : function(editor) { 
     19                 self.buttonPress(editor); 
     20               } 
    2121  }); 
    2222  if (!cfg.Filters) 
     
    4444    var filter = _editor_url + "plugins/filter/filters/" + filterName + ".js"; 
    4545    var head = document.getElementsByTagName("head")[0]; 
    46     var evt = HTMLArea.is_ie ? "onreadystatechange" : "onload"; 
     46    var evt = Xinha.is_ie ? "onreadystatechange" : "onload"; 
    4747    var script = document.createElement("script"); 
    4848    script.type = "text/javascript"; 
    4949    script.src = filter; 
    5050    script[evt] = function() { 
    51       if(HTMLArea.is_ie && !/loaded|complete/.test(window.event.srcElement.readyState))  return; 
     51      if(Xinha.is_ie && !/loaded|complete/.test(window.event.srcElement.readyState))  return; 
    5252    } 
    5353    head.appendChild(script); 
     
    5757 
    5858Filter.prototype._lc = function(string) { 
    59     return HTMLArea._lc(string, 'Filter'); 
     59    return Xinha._lc(string, 'Filter'); 
    6060}; 
    6161 
Note: See TracChangeset for help on using the changeset viewer.