Ticket #14123 (new Bug)
Tinymce strips <a href=".html"> tags around <div></div>
Reported by: | fvandijk | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | Unknown | Version: | 4.3 |
Keywords: | TinyMCE | Cc: |
Description
In HTML5 it is valid to have a HTML structure like this:
<a href="bla"> <div> bla bla </div> </a>
But Tinymce strips the <a> tag client side from the source html as this was not a valid construct in HTML4/XHTML
To reproduce: open a wysiwyg text field, switch to the html code screen, paste code like above. Products.TinyMCE 1.3.6 / Plone 4.3.3
Note: See
TracTickets for help on using
tickets.
You need to add advanced setting on TinyMCE settings.
If you are using Plone 5, valid_child_elements is not supported. Please use a below.