WordPress messing up my HTML code!
-
Why is it when I switch from the visual editor to the HTML editor and back that WordPress messes up my code?
Here is what I insert:
<img src="/wp-content/uploads/map-this-image.jpg" alt="map-this" width="480" height="717" usemap="#controlpanel" /> <map name="controlpanel"> <area shape="rect" coords="0,0,251,329" href="/wp-content/uploads/top-left.jpg" alt="top-left" target="_blank" /> <area shape="rect" coords="251,0,480,329" href="/wp-content/uploads/top-right.jpg" alt="top-right" target="_blank" /> <area shape="rect" coords="0,329,251,717" href="/wp-content/uploads/botom-left.jpg" alt="bottom-left" target="_blank" /> <area shape="rect" coords="251,329,480,717" href="/wp-content/uploads/botom-right.jpg" alt="bottom right" target="_blank" /> </map> What it ends up doing is inserting an opening <map name="controlpanel"> tag, and a closing </map> tag around every <area> tag like this: <img src="/wp-content/uploads/map-this-image.jpg" alt="map-this" width="480" height="717" usemap="#controlpanel" /> <map name="controlpanel"> <area shape="rect" coords="0,0,251,329" href="/wp-content/uploads/top-left.jpg" alt="top-left" target="_blank" /></map> <map name="controlpanel"> <area shape="rect" coords="251,0,480,329" href="/wp-content/uploads/top-right.jpg" alt="top-right" target="_blank" /></map> <map name="controlpanel"> <area shape="rect" coords="0,329,251,717" href="/wp-content/uploads/botom-left.jpg" alt="bottom-left" target="_blank" /></map> <map name="controlpanel"> <area shape="rect" coords="251,329,480,717" href="/wp-content/uploads/botom-right.jpg" alt="bottom-right" target="_blank" /></map>
What the heck is up with that and how the hell do I stop it from doing that?!?!?
I am using the TinyMCE Advanced plugin but I don’t think it is the problem.
[Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use the pastebin. As it stands, your code has now been permanently damaged/corrupted by the forum’s parser.]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘WordPress messing up my HTML code!’ is closed to new replies.