TinyMCE:Configuration/fix nesting

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Option: fix_nesting

(Requires: 3.0rc2)

This option controls if invalid contents should be corrected before insertion in IE. IE has a bug that produced an invalid DOM tree if the input contents aren't correct so this option tries to fix this using preprocessing 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