I plan to eventually roll out a new company web site in Umbraco. Coming from a web applications development background, I understand the need to avoid inline styles in web content and use predefined styles in css. But I don't have the same confidence in our non-technical employees who want to add style to content. I want to prevent inline styles and force content editors to use predefined styles.
look at the tinymceconfig.config in the /config/ folder... updating the validelements node you will be able to have tiny mce strip out any attribute you don't want... I'm guessing the style attribute would be where you start.
Restricting inline styles in TinyMCE?
I plan to eventually roll out a new company web site in Umbraco. Coming from a web applications development background, I understand the need to avoid inline styles in web content and use predefined styles in css. But I don't have the same confidence in our non-technical employees who want to add style to content. I want to prevent inline styles and force content editors to use predefined styles.
Is is possible? Currently using 4.7.x...
look at the tinymceconfig.config in the /config/ folder... updating the validelements node you will be able to have tiny mce strip out any attribute you don't want... I'm guessing the style attribute would be where you start.
[http://www.tinymce.com/wiki.php/Configuration:valid_elements] for reference.
is working on a reply...