TinyMCE:Configuration/fix nesting

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Option: fix_nesting

(Requires: 3.0rc2)

This option controls if non valid contents should be corrected before insertion in IE. IE has a bug that produced an invalid DOM tree if the input contents isn't correct so this option tries to fix this using pre processing of the HTML string. This option is disabled by default since it might be a bit slow.

This invalid code:

<p><b></p></b>

Gets converted into this correct value:

<p><b></b></p>

Example of usage of the fix_nesting option:

tinyMCE.init({
	...
	fix_nesting : true
});
Personal tools