Copied to clipboard

Flag this post as spam?

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


  • Johan Reitsma 68 posts 234 karma points MVP
    Feb 26, 2014 @ 21:33
    Johan Reitsma
    0

    TinyMCE Inline Styles replace by class attributes

    Is it possible to change inline styles to a class name. For our site we don't want to have inline styles on items because of the WCAG (http://www.w3.org/TR/WCAG10/)

    Is there a configuration for in U7?

  • Robert Dyson 50 posts 147 karma points c-trib
    Feb 27, 2014 @ 11:01
    Robert Dyson
    0

    Yes,

    If you create a stylesheet in the admin you can then alter the Rich Text Editor DataType, you can add a stylesheet to the Styles dropdown box.

    It's best if you create the stylesheet in the Admin then rather than populating the file yourself Click "Create" add each style individually

    You can then add the alias as h1 or .className. The style here just affects how it looks in tinyMCE so be sure to add a matching style in your main stylesheet.

    Let me know if you have any more questions.

     

  • Johan Reitsma 68 posts 234 karma points MVP
    Feb 27, 2014 @ 14:36
    Johan Reitsma
    0

    But does this also work for buttons like align right. Currently it returns style="text-align: right;"

  • Robert Dyson 50 posts 147 karma points c-trib
    Feb 27, 2014 @ 14:54
    Robert Dyson
    0

    I don't think, just add a style for align right..

     

     

Please Sign in or register to post replies

Write your reply to:

Draft