TinyMCE:Configuration/remove redundant brs

From Moxiecode Documentation Wiki

Jump to: navigation, search

Option: remove_redundant_brs

This option is enabled by default and will control the output of trailing BR elements at the end of block elements. Since IE can't render these properly we need to remove them by default to ensure proper output across all browsers. So for some browsers this BR at the end of the LI at the example below is redundant.

Example of input/output

This:
<li>Text<br /></li>

Will become:
<li>Text</li>

Example of usage of the remove_redundant_brs option:

tinyMCE.init({
	...
	remove_redundant_brs : false
});
Personal tools