Visual Editor messes up image map code (2 posts)

  1. ph23man
    Posted 4 years ago #

    If you paste image map code into the HTML editor, and then switch to the Visual editor, it messes up the image map code by wrapping each <area> tag with duplicate <map> tags.

    This also happens on WP 3.2 but didn't happen on WP 3.1.

    Note the image map code IS being pasted into the HTML editor but if you switch to the Visual Editor for any reason to make other changes, it alters the image map code. Even if you don't make changes - paste image map code into HTML editor, switch to Visual, then switch back - the image code is altered.

    The setting for "WordPress should correct invalidly nested XHTML automatically" is also OFF.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Do not switch editing tabs. As you have experienced, the Visual Editor will destroy or otherwise mangle any markup entered via the HTML tab. Pick a tab and stick to it.

Topic Closed

This topic has been closed to new replies.

About this Topic