Remember me? forgot password | register

SilverStripe Forum

10688 Posts in 2795 Topics by 1518 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 521 views
  • KatB
    KatB's 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
    Core Development Team
    1263 posts
    3 SilverStripe Sites 2 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
    94 posts

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

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

    521 views
go to top Reply

Currently Online:

Fuzz10, LeeUmm, micahsheets, simon_w, motoservo

Welcome to our latest member: lorem