TinyMCE:Configuration/remove linebreaks

From Moxiecode Documentation Wiki

Jump to: navigation, search

Option: remove_linebreaks

This option controls if linebreak characters should be removed from output HTML or not. This option is enabled by default since there are differences between browser implementations on what to do with whitespace in the DOM Gecko and Safari places whitespace a text nodes in the DOM, IE and Opera removes then from the DOM and there for the linebreaks will automatically be removed in those. This option will normalize this behavior is it's set to true all browsers will have a whitespace stripped DOM serialization.

Example of usage of the remove_linebreaks option:

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