Using the WordPress advanced visual editor (TinyMCE Advanced) to apply CSS styles, edit tables, search-and-replace, spell-check and more

by marc on April 19, 2011

There is a superior visual editor for WordPress that you can install and configure to your site in 2 minutes. It’s called TinyMCE Advanced. It offers a rich expansion over the default editor, particularly:

  • Imports all CSS classes from the main theme stylesheet and add them to a drop-down list.
  • Support for making and editing tables (with a very cool context sensitive menu to add, delete and merge columns and rows, set table properties etc).
  • In-line CSS styles.
  • Advanced link and image dialogs that offer a lot of options.
  • Search and Replace while editing.
  • Support for XHTML specific tags
  • Add/remove (div based) layers, with relative or absolute positioning via drag-and-drop etc.

Here is how it works:

  1. Search, install and activate “TinyMCE advanced” from Plugins > Add new
  2. In Settings > TinyMCE Advanced, drag and drop as many icons as you want (or all of them) from the bottom panel onto the 3rd line of the toolbar.
    image
  3. Check “Import the current theme CSS Classes” at the bottom
  4. “Save Changes”

Now (for example) in your visual editor, highlight any text and choose the applicable style (ie. “redcheck”) from the drop-down:

image

Your style will be applied:

image

Notes:

  1. If you are using Firefox, the context menus Cut / Copy / Paste are disabled by default by the Firefox security settings (which can be very annoying). You will need to enable them using the information in this article (installing the AllowClipboard Helper plugin).
  2. The function to import the current CSS doesn’t work in Atahualpa or other CSS files that are automatically-generated or complex. You will need to cut-and-paste into the TInyMCE custom CSS file (see the bottom of Settings > TinyMCE under “Advanced”)
  3. Only “pure” CSS classes will get imported, ie. “div.redcheck {…}” won’t work and neither will “.redcheck li {…}”

For more information on changing list and bullet style in WordPress see also the following article.

Comment on Facebook!

{ 4 comments… read them below or add one }

Greg Turner November 1, 2011 at 3:17 pm

It would be helpful if your posts were dated. There is no ‘Import the current theme CSS Classes’ button on my Advanced TinyMCE, so I am wondering how old this article is.

Reply

marc November 1, 2011 at 9:47 pm

Thanks Greg, good idea, I am adding the date to the post now. This article does need updating.

Reply

Josh Lobe January 2, 2012 at 3:40 am

Here is another alternative… just to keep things interesting ;)

http://wordpress.org/extend/plugins/ultimate-tinymce/

Reply

marc January 2, 2012 at 4:02 pm

Thanks Josh, good call

Reply

Leave a Comment

Greg Turner November 1, 2011 at 3:17 pm

It would be helpful if your posts were dated. There is no ‘Import the current theme CSS Classes’ button on my Advanced TinyMCE, so I am wondering how old this article is.

Reply

marc November 1, 2011 at 9:47 pm

Thanks Greg, good idea, I am adding the date to the post now. This article does need updating.

Reply

Josh Lobe January 2, 2012 at 3:40 am

Here is another alternative… just to keep things interesting ;)

http://wordpress.org/extend/plugins/ultimate-tinymce/

Reply

marc January 2, 2012 at 4:02 pm

Thanks Josh, good call

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>