Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » CSS class names in the Content Editor

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

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

Page: 1
Go to End
Author Topic: 1492 Views
  • KatB
    Avatar
    Community Member
    94 Posts

    CSS class names in the Content Editor Link to this post

    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?

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: CSS class names in the Content Editor Link to this post

    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.

  • KatB
    Avatar
    Community Member
    94 Posts

    Re: CSS class names in the Content Editor Link to this post

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

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