Karl Wångstedt wrote:
Hi all
I'm trying to modify the content of the formats menu in TinyMCE. I know
it's possible by editing the editor_template.js file in the core, but
I'd like to do it via plugin instead. But I can't seem to find out how
to filter the theme_advanced_blockformats parameter.
Does any of you know how to do it?
That would be:
function my_tinymce_mod($init) {
$init['theme_advanced_blockformats'] = 'p,dt,dd,code,...';
return $init;
}
add_filter('tiny_mce_before_init', 'my_tinymce_mod');
More info:
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/theme_advanced_blockformats
_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers