Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

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


Reply


648 Views

Avatar
vwd

Community Member, 160 Posts

10 November 2011 at 5:34pm

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.