Changeset 508
- Timestamp:
- 05/01/06 05:00:03 (7 years ago)
- Files:
-
- 1 modified
-
trunk/plugins/SuperClean/super-clean.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/SuperClean/super-clean.js
r507 r508 102 102 103 103 //avaliable filters (these are built-in filters) 104 // You can either use 105 // 'filter_name' : "Label/Description String" 106 // or 'filter_name' : {label: "Label", checked: true/false, filterFunction: function(html) { ... return html;} } 107 // filterFunction in the second format above is optional. 108 104 109 'filters': { 'tidy': HTMLArea._lc('General tidy up and correction of some problems.', 'SuperClean'), 105 110 'word_clean': HTMLArea._lc('Clean bad HTML from Microsoft Word', 'SuperClean'), … … 188 193 //load the filter-functions 189 194 for(var filter in this.editor.config.SuperClean.filters) 190 { 195 { 191 196 if(!SuperClean.filterFunctions[filter]) 192 197 { 193 HTMLArea._getback(_editor_url + 'plugins/SuperClean/filters/'+filter+'.js', 198 var filtDetail = this.editor.config.SuperClean.filters[filter]; 199 if(typeof filtDetail.filterFunction != 'undefined') 200 { 201 SuperClean.filterFunctions[filter] = filterFunction; 202 } 203 else 204 { 205 HTMLArea._getback(_editor_url + 'plugins/SuperClean/filters/'+filter+'.js', 194 206 function(func) { 195 207 eval('SuperClean.filterFunctions.'+filter+'='+func+';'); 196 208 sc.onGenerate(); 197 209 }); 210 } 198 211 return; 199 212 }
