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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

CSS class names in the Content Editor


Go to End


3 Posts   1911 Views

Avatar
KatB

Community Member, 105 Posts

15 April 2008 at 6:18pm


In the content editor itself, you can create tables in your pages. You can right click and change properties for the whole table, the table row and the individual table cell.

One of the properties is class name.

Where on earth do these class names go? In the online demo version you can change the table cell to mceContentBody, and searching high and low for this, I find it as body.mceContentBody in editor.css.

For our users to change the class, should the classes be defined in editor.css, or if not, where?

Avatar
Willr

Forum Moderator, 5523 Posts

15 April 2008 at 7:35pm

Typography.css. This file is designed for things like this styling to be available on both the front end and backend. Editor.css should include typography.css by default too.

Avatar
KatB

Community Member, 105 Posts

16 April 2008 at 3:54pm

Actually, I stuck it into editor.css and it worked!