WordPress Plugin: Enabling TinyMCE for the title

Rich editing for the title

I needed this WordPress plugin, named ILC Rich Title for a particular work I was in. I had to enable rich text editing for the title field on the edit post/page area. In fact, the customer only wanted to add some line breaks, but I added the whole TinyMCE to it. I’m not sure if this exists for the title but I researched a lot and didn’t found one.

What I did found was the TinyMCE Excerpt plugin by Simon Wheatley which enables TinyMCE for the excerpt edit field. Changing the jQuery wrap that TinyMCE Excerpt performs by targeting the appropriate title div, #title (with the help of the ever loved Firebug) I got what I wanted. After that it was a matter of triggering wpautop for both edit area and rendered content, using the edit_post_title for the former and the_title for the latter. Now, since I’m using the_title, it means that it will enclose into p all the titles so be careful when setting your css for titles.

UPDATE: 2009-1-22

ILC Rich Title is hosted on WordPress plugins repository. You can download it from there.

Posted on Saturday, January 3rd, 2009 in .

“WordPress Plugin: Enabling TinyMCE for the title” received 8 comments! Add yours.

  1. Enabling TinyMCE for the Title - WP Plugin Archive January 26th, 2009

    [...] Enabling TinyMCE for the Title von Elliot macht den TinyMCE Editor nutzbar für die Titelzeile in Posting oder statischen [...]

  2. Rodrigo Falco February 7th, 2009

    The post I felt like commenting on was the “Dreambugs” one, just finished downloading it. But I was attracted by the lyrics on the post image. Geez, LOVE that music! GOD KNOWS how much I like it. lol Great blog, your posts are really helping out here, thanks! ^^

  3. Elliot February 7th, 2009

    Obrigado Rodrigo! I’m glad you’ve useful content here, I’m just trying to give something back to the community.
    I added those lyrics because I wanted to know who else knew that song, it’s a really cool song :D
    Retorna quando você quer, bye!

  4. Pablo Guil June 25th, 2009

    Can I split a title in two lines with this plug-in? I mean, can I force a line break in my post titles?
    This could be useful when in a long title just one word is automatically placed in the second line of a title.

    Thanks!

  5. Elliot January 28th, 2010

    Yes Pablo, you can split the title text in two lines. Since it’s rich text you can pretty much do anything to it, but be careful not to get too messy.

  6. Chris Hammett July 16th, 2010

    When I was using this plugin, the rollover on the titles showed the html code. Is there something that I need to change so it doesn’t do this?

  7. Elio July 16th, 2010

    Chris, this is not related to the plugin, but rather an issue with you’re outputting the html for your title.

  8. Palli Svans August 24th, 2010

    Is it compatible with the latest Wordpress? (3.0.1)

Leave a comment