Jump to:

23490 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » TinyMCE Styles dropdown - converts style name to lowercase when a style is applied...

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 567 Views
  • vwd
    Avatar
    Community Member
    158 Posts

    TinyMCE Styles dropdown - converts style name to lowercase when a style is applied... Link to this post

    Hi,

    Does anyone else experience this problem? I've added styles to typography.css. And they nicely show up in the TinyMCE editor 'styles' dropdown.

    In the dropdown list itself, the case is converted to lowercase and it applies the style name lowercase.

    So a discrepancy will exist with any styles that have been written in camel case (or anything other than lowercase).

    Eg. typography.css

    .sloganText {
    font-size: 2.3em;
    }

    In the TinyMCE dropdown, it appears as:

    slogantext

    When applied to content via the editor....

    <p class="slogantext">My SLogan</p>

    Obviously, a solution is to rename styles to lowercase. But is this a bug that should be reported? Are are some naming conventions being enforced deliberately?

    Thanks.

    VWD.

    567 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.