Jump to:

3393 Posts in 976 Topics by 852 members

Template Questions

SilverStripe Forums » Template Questions » format in cms

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

Page: 1
Go to End
Author Topic: 1089 Views
  • servalman
    Avatar
    Community Member
    211 Posts

    format in cms Link to this post

    Hello

    I want to now where I can find ressources to do the following :

    - Is it possible to add new format in the cms in the "Edit Page pane"
    I know it must have to do with css settings but I wanted to know the best way to do it

    Thank you

  • mschiefmaker
    Avatar
    Community Member
    187 Posts

    Re: format in cms Link to this post

    in the editor.css add something like

    body.green_highlight{
       font-weight: 500;
       color:#537335;
       
       }

    This will give you an additional option green_highlght in the styles dropdown in the edit bar in the CMS

    Cheers

    MM

  • servalman
    Avatar
    Community Member
    211 Posts

    Re: format in cms Link to this post

    thanks for your answer.

    One other question what is the difference from using the typography.css file ?

    Thank you

  • mschiefmaker
    Avatar
    Community Member
    187 Posts

    Re: format in cms Link to this post

    Sorry I forgoten you need to edit the HTMLEditorField.php file. There is a section commented out at line 280
    /*new HtmlEditorField_dropdown("mceSetCSSClass", "styleSelect", array(
                "mceContentBody" => "mceContentBody",
             )),*/
    Remove the comments to this.

    In terms of you second question, check out this thread. [url= http://www.silverstripe.org/archive/show/186128#post186128]
    Will covers it off well

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