[wp-testers] Looking for a filter hook for TinyMCE
Andrew Ozz
admin at laptoptips.ca
Sat May 31 17:28:49 GMT 2008
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
More information about the wp-testers
mailing list