This is my configuration. I have
verify_html : false
there. But, for instance, the following code:
<ul>
<h3>h3</h3>
<li>el1</li>
<li>el2</li>
</ul>
is converted to:
<h3>h3</h3>
<ul>
<li>el1</li>
<li>el2</li>
</ul>
It’s TinyMCE 3.5.6. cleanup option is deprecated. So I have no idea how to turn it off.
I know it is weird that h3 is there under ul. But some people have
a lot of side effects with such kind of cleanup.
You might not be able to disable validation. But you can define how tinymce will treat html tags. Here is a setting which will keep the
h3where you want it to be, but you need to configure thath3-tags may be children oful-tags:http://fiddle.tinymce.com/mfcaab