Jump to:

5540 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Customising TinyMCE Font size and colour

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

Page: 1
Go to End
Author Topic: 1938 Views
  • stevanovich
    Avatar
    Community Member
    60 Posts

    Customising TinyMCE Font size and colour Link to this post

    Okay so I have looked to find the answer to this using 2.4.1 but have not found it can anyone shed light on how to add these in the latest TinyMCE editor : ,forecolor,fontselect,fontsizeselect. These were from the old core.

  • swaiba
    Avatar
    Forum Moderator
    1792 Posts

    Re: Customising TinyMCE Font size and colour Link to this post

    add this to your _config.php, but remember they are not there because you should be using the styles and editing the css to ensure a consistent look across the site...

    HtmlEditorConfig::get('cms')->insertButtonsBefore('formatselect', 'fontselect');
    HtmlEditorConfig::get('cms')->insertButtonsBefore('formatselect', 'fontsizeselect');
    HtmlEditorConfig::get('cms')->insertButtonsBefore('formatselect', 'forecolor');

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