[wp-testers] Visual editor damages <map></map> HTML construct (3.2 beta1 nightly)

Andrew Ozz admin at laptoptips.ca
Mon May 23 16:08:47 UTC 2011


On 22/05/2011 11:46 PM, Frank Bueltge wrote:
> Hi,
> current you can add the html-tag to the TinyMce via Filter an a custom
> function:

Yes, that will work for adding tags that are missing (missing = TinyMCE 
doesn't understand them and removes them). You can also use a plugin to 
make that a bit easier 
http://wordpress.org/extend/plugins/advanced-tinymce-configuration/

The problem here is not that TinyMCE doesn't understand the <map> tag, 
but rather that wpautop treats any line break as a <br /> producing 
invalid (unreadable for the browser?) HTML when loading the content into 
TinyMCE. The solution is not to make your HTML in the HTML editor look 
pretty by using line breaks but make it work (btw TinyMCE is set to 
remove all line breaks when outputting the content).


More information about the wp-testers mailing list