Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Steve Kallal 9 posts 29 karma points
    Jan 05, 2012 @ 18:38
    Steve Kallal
    0

    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...

     

  • Mike Chambers 636 posts 1253 karma points c-trib
    Jan 05, 2012 @ 18:40
    Mike Chambers
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft