Changeset 560
- Timestamp:
- 08/28/06 15:55:24 (7 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
examples/ext_example-menu.php (modified) (1 diff)
-
plugins/SuperClean/super-clean.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/ext_example-menu.php
r511 r560 260 260 <?php 261 261 $d = @dir($LocalPluginPath); 262 $dir_array = array(); 262 263 while (false !== ($entry = $d->read())) //not a dot file or directory 263 264 { if(substr($entry,0,1) != '.') 264 { echo '<label><input type="checkbox" name="plugins" id="plugins" value="' . $entry . '"> ' . $entry . '</label>'."\n"; 265 { 266 $dir_array[] = $entry; 265 267 } 266 268 } 267 269 $d->close(); 270 sort($dir_array); 271 foreach ($dir_array as $entry) 272 { 273 echo '<label><input type="checkbox" name="plugins" id="plugins" value="' . $entry . '"> ' . $entry . '</label>'."\n"; 274 } 275 268 276 ?> 269 277 </div> -
trunk/plugins/SuperClean/super-clean.js
r522 r560 48 48 if(opts[filter]) 49 49 { 50 D = SuperClean.filterFunctions[filter](D );50 D = SuperClean.filterFunctions[filter](D, editor); 51 51 } 52 52 } … … 106 106 // or 'filter_name' : {label: "Label", checked: true/false, filterFunction: function(html) { ... return html;} } 107 107 // filterFunction in the second format above is optional. 108 108 109 109 'filters': { 'tidy': HTMLArea._lc('General tidy up and correction of some problems.', 'SuperClean'), 110 110 'word_clean': HTMLArea._lc('Clean bad HTML from Microsoft Word', 'SuperClean'), … … 160 160 D = D.replace(new RegExp(String.fromCharCode(8216),"g"),"'"); 161 161 D = D.replace(new RegExp(String.fromCharCode(8217),"g"),"'"); 162 D = D.replace(new RegExp(String.fromCharCode(8218),"g"),"'"); 163 D = D.replace(new RegExp(String.fromCharCode(8219),"g"),"'"); 162 164 D = D.replace(new RegExp(String.fromCharCode(8220),"g"),"\""); 163 165 D = D.replace(new RegExp(String.fromCharCode(8221),"g"),"\""); 166 D = D.replace(new RegExp(String.fromCharCode(8222),"g"),"\""); 167 D = D.replace(new RegExp(String.fromCharCode(8223),"g"),"\""); 164 168 return D; 165 169 }; … … 193 197 //load the filter-functions 194 198 for(var filter in this.editor.config.SuperClean.filters) 195 { 199 { 196 200 if(!SuperClean.filterFunctions[filter]) 197 201 { … … 250 254 var filtDetail = this.SuperClean.editor.config.SuperClean.filters[filter]; 251 255 if(typeof filtDetail.label == 'undefined') 252 { 256 { 253 257 htmlFilters += " <input type=\"checkbox\" name=\"["+filter+"]\" id=\"["+filter+"]\" checked />\n"; 254 258 htmlFilters += " <label for=\"["+filter+"]\">"+this.SuperClean.editor.config.SuperClean.filters[filter]+"</label>\n";
