• mothership

    (@mothership)


    I am entering raw HTML into the HTML tab of the page editor and upon saving extra paragraph tags are being entered. e.g.

    <div class="one_fourth"><h6>Web Development</h6><p><span class="dropcap1">1</span>Donec sed tellus eget sapien fringilla nonummy. Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Proin tincidunt, velit vel porta elementum, magna diam.</p><img style="margin-top: -10px;" src="http://site.com/site-images/home-more.png" alt="more" /></div>

    has an extra paragraph opening tag put before the img tag which breaks the validation.

    Does anyone have a solution on how to get the HTML edit panel to respect HTML code entered without changing it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    (@esmi)

    Admin/Settings/Writing.
    Ensure that “WordPress should correct invalidly nested XHTML automatically” is unchecked.

    My experience is that WP wipes any html you add in the HTML tab when you save more than once. I will try the EmbedIt add-on instead.

    Isn’t there any plugin with wich you can get certain styles to appear in the formatting drop-down list? That could be really handy.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘HTML editor alters code upon saving’ is closed to new replies.