Support » Fixing WordPress » Changing default font tags in visual rich editor

  • Hi.

    I’m setting up a blog for a client and wanted to amend the default tags entered by the Visual Rich Editor when a user enters or amends copy. At the moment this inserts. For example it may insert something like this:

    <p class=”MsoNormal”><font size=”2″ face=”Arial”><span lang=”EN-GB” style=”font-size: 10pt; font-family: Arial”>

    Is there somewhere I can stop this form happening so the copy simply is inserted in:



    Thanks in advance for any help.

Viewing 2 replies - 16 through 17 (of 17 total)
  • If you want to make the advanced toolbar the default, and have it appear every time you can check my post on customizing the TinyMCE visual editor buttons in WordPress 2.1 at

    There’s also some instructions on how to customize the toolbar.

    Tiny MCE as configured in WordPress 2.1 wipes away divs and replaces them with p tags.

    This can be fixed by doing the following:

    1-Open your TinyMCE config file in an editor. The file is located at:

    2-Replace Line 25 with the following but on a single line:

    $valid_elements = ‘#p[*],-div[*],-strong/-b[*],-em/-i[*],-font[*],-ul[*],-ol[*],-li[*],*[*]’;

    3-Save the file back to your active WordPress installation, overwriting the existing tiny_mce_config.php file.

    4-In WordPress admin, the editor will now allow divs.

    You may have to refresh your editor page.

    As always, copy your original tiny_mce_config.php file to a safe place for backup before editing the original.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Changing default font tags in visual rich editor’ is closed to new replies.