cancel
Showing results for 
Search instead for 
Did you mean: 

TinyMCE verify_html settings

TinyMCE verify_html settings

Hello,

i have a problem with the validation of html into the CMS feature. If i input the html code into the editor it will remove the a tag.

 

Input:

<div class="...">
	<a href="..." class="...">
		<h2>Text</h2>
	</a>
</div>

Output:

<div class="...">
	<h2>Text</h2>
</div>

 

Now i want to disable the html validation. But i don't know where i need to do this.

I tests to add the following settings to the settings object into 'magento-root/js/mage/adminhtml/wysiwyg/tiny_mce/setup.js'.

cleanup_on_startup: false,
trim_span_elements: false,
verify_html: false,
cleanup: false,
convert_urls: false,
valid_children: "[]",
valid_elements: '[]',

Does somebody have an idea how to disable the validation that it not removes the a tag?