[wp-hackers] TinyMCE Wordpress Plugin CSS File

Andy Skelton skeltoac at gmail.com
Thu Mar 22 16:18:03 GMT 2007

On 3/22/07, Ryan Fitzer <ryanfitzer at gmail.com> wrote:
> Anyone know a way (hook) to add CSS to the WordPress Plugin's CSS file (
> wordpress.css) via a plugin? Now that the dropdown comes as an easter egg I
> want to be able to add the css with a plugin rather than replacing the file
> after every upgrade.

Anything you want to add to TinyMCE should be added via one of the
hooks/filters in tiny_mce_config.php. Use the mce_css filter to
replace wordpress.css or use tinymce_before_init to echo some of your
own javascript which will execute prior to tinyMCE.init.

The latter method is the most powerful. You can replace any tinyMCE
function with your own code.


More information about the wp-hackers mailing list