Remember me? forgot password | register

SilverStripe Forum

8098 Posts in 2087 Topics by 1161 members

Jump to:

Site Builders

If this is your first visit, you will need to register before you can post. However, you can browse all messages below.

Community » SilverStripe Forum » Site Builders » CSS class names in the Content Editor
Page: 1 go to end Reply
Author Topic: CSS class names in the Content Editor 398 views
  • KatB
    KatB's avatar
    Community Member
    88 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
    Core Development Team
    977 posts
    3 SilverStripe Sites 3 SilverStripe Themes

    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
    KatB's avatar
    Community Member
    88 posts

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

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

    398 views
go to top Reply

Currently Online:

There is nobody online.

Welcome to our latest member: dewoob