Wordpress Admin: Adding css styles to Rich text editor drop down

Hey does anyone know how to add your own custom css classes to the Wordpress admin rich text editor drop downs?

When editing a post you see the drop downs to format the selected text to be a paragraph, address or h3 tag. What would be the proper way to add an option "Highlight" that would change the selected text from:

selected text


<span class="highlight">selected text</span>



If you're using WP3, try using the following function in your theme's functions.php file: http://codex.wordpress.org/Function_Reference/add_editor_style

More detailed instructions:


Related SO question: How do I use new add_editor_style() function in wordPress?

Need Your Help

Hold gesture to save image to media library


I'm trying to work something out and can't seem to get the final piece together. I have a Windows Phone app that displays images from Flickr and what I want to do is allow the user to save the imag...

set svn:externals to a repository url from command line

svn svn-externals svn-propset

Am trying to set svn externals directly to a repository url from the command line. I would like to know if there is a way to accomplish this without checking out a working copy

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.