Changeset 1199
- Timestamp:
- 11/08/09 05:23:15 (4 years ago)
- Location:
- trunk/plugins/SuperClean
- Files:
-
- 2 modified
-
SuperClean.js (modified) (1 diff)
-
pluginMethods.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/SuperClean/SuperClean.js
r1141 r1199 37 37 // it's called through XMLHTTPRequest 38 38 'tidy_handler': Xinha.getPluginDir("SuperClean") + '/tidy.php', 39 40 // set additional arguments needed for the tidy request 41 'tidy_args' : {}, 39 42 40 43 //avaliable filters (these are built-in filters) -
trunk/plugins/SuperClean/pluginMethods.js
r1165 r1199 57 57 } 58 58 } 59 Xinha._postback(editor.config.SuperClean.tidy_handler, {'content' : editor.getInnerHTML()},callback); 59 60 var args = editor.config.SuperClean.tidy_args; 61 if ( typeof args != 'object' ) 62 { 63 args = {}; 64 } 65 args['content'] = editor.getInnerHTML(); 66 67 Xinha._postback(editor.config.SuperClean.tidy_handler, args, callback); 60 68 } 61 69 else … … 154 162 } 155 163 } 156 Xinha._postback(editor.config.SuperClean.tidy_handler, {'content' : html},callback); 164 165 var args = editor.config.SuperClean.tidy_args; 166 if ( typeof args != 'object' ) 167 { 168 args = {}; 169 } 170 args['content'] = html; 171 172 Xinha._postback(editor.config.SuperClean.tidy_handler, args, callback); 157 173 }; 158 174
