Title: Visual Editor messes up image map code
Last modified: August 20, 2016

---

# Visual Editor messes up image map code

 *  [ph23man](https://wordpress.org/support/users/ph23man/)
 * (@ph23man)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/visual-editor-messes-up-image-map-code/)
 * 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.

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/visual-editor-messes-up-image-map-code/#post-2538981)
 * 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.

Viewing 1 replies (of 1 total)

The topic ‘Visual Editor messes up image map code’ is closed to new replies.

## Tags

 * [image map](https://wordpress.org/support/topic-tag/image-map/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/visual-editor-messes-up-image-map-code/#post-2538981)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
