Trying to make the rich editor (TinyMCE) plugin to automatically clean things, i would like some help to make the following code from Wordpress to work with Osclass.
Automatically Clean Up Microsoft Word HTML
Drop this code into your theme’s functions.php file. Anything you paste into TinyMCE will automatically be run through the built-in Microsoft Word HTML filtering.
/**
* Safe Pasting for TinyMCE (automatically clean up MS Word HTML)
*/
function tinymce_paste_options($init) {
$init['paste_auto_cleanup_on_paste'] = true;
$init['paste_convert_headers_to_strong'] = true;
return $init;
}
if( is_admin() ) add_filter('tiny_mce_before_init', 'tinymce_paste_options');
Any ideas welcome, thanks