Changeset 537 for trunk/plugins/Filter


Ignore:
Timestamp:
08/01/06 15:57:55 (13 years ago)
Author:
gocher
Message:

fix for Ticket #812
Plugin Filter crashes xinha

File:
1 edited

Legend:

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

    r419 r537  
    2020             } 
    2121  }); 
    22         //cfg.Filters = ["Paragraph","Word"]; 
     22  if (!cfg.Filters) 
     23    cfg.Filters = ["Paragraph","Word"]; 
    2324  for (var i = 0; i < editor.config.Filters.length; i++) { 
    2425    self.add(editor.config.Filters[i]); 
    25         } 
     26  } 
    2627  cfg.addToolbarElement("filter", "removeformat", 1); 
    2728} 
     
    4041 
    4142Filter.prototype.add = function(filterName) { 
    42         if(eval('typeof ' + filterName) == 'undefined') { 
     43  if(eval('typeof ' + filterName) == 'undefined') { 
    4344    var filter = _editor_url + "plugins/filter/filters/" + filterName + ".js"; 
    4445    var head = document.getElementsByTagName("head")[0]; 
Note: See TracChangeset for help on using the changeset viewer.