TinyMCE:Configuration/convert fonts to spans

From Moxiecode Documentation Wiki

Jump to: navigation, search

Option: convert_fonts_to_spans

If you set this option to true, all TinyMCE will convert all font elements to span elements and generate span elements instead of font elements. This option should be used inorder to get more W3C compatible code, since font elements are deprecated. How sizes gets converted can be controlled by the font_size_classes and font_size_style_values options.

This option is enabled by default as of 3.0a1.

Example of usage of the convert_fonts_to_spans option:

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