Is there a way to prevent the Editor from modifying my HTML

Is there a way to prevent the Visual Editor from modifying my HTML when creating a post or a page? I know it has good intentions in doing what it does, but sometimes I’d prefer it not to touch my HTML, yet render the HTML in visual mode.

Thank you!

Read More

Sample of code used in editor:

<td width="124" align="left" valign="top">
    <p style="line-height: 140%; font-size: 10px; color: #333; font-family: Arial; margin: 0; padding: 0 0 12px 0;">
        <strong>Team Demo of the New Shake Table</strong>
    </p> 
    <p>
        <strong>May 17, 4-6pm</strong>
    </p>
    <p style="line-height: 140%; font-size: 10px; color: #333; font-family: Arial; margin: 0; padding: 0 0 8px 0;">
        <strong>Tech Exhibition in Oslo</strong>
    </p>
    <p><strong>June 5-9, Halle</strong>
</td>

Related posts

Leave a Reply

3 comments

  1. I don’t think there’s a way to get TinyMCE to leave your HTML alone. This has been discussed in the WP Forum for ages. I stick with the HTML editor & write my code in another editor such as BBEdit first if it needs to be complicated.

    As a general rule, I would not include that much inline styling in a post. It makes it very difficult to maintain or modify your styles in the future. This should all be defined in the theme stylesheet.