How do I use new add_editor_style() function in wordPress?


Staff member
I found this article:

<a href="" rel="nofollow noreferrer"></a>

I created a child theme using the Twentyten theme as a parent. I am trying to have the WYSIWYG editor use a custom stylesheet.

I added this to my functions.php file:


Then I created an <strong>editor-style.css</strong> file in my child theme's folder and added this:

html .mceContentBody {

When I go to the WYSIWYG editor and use firebug to check the css that is affecting the <strong>.mceContentBody</strong> element, I can see that is using my stylesheet, but it is being overrriden by the default editor-style.css sheet from the twentyten theme.

How can I force it to use my editor-style.css file and not the default one?