Jump to:

5554 Posts in 1742 Topics by 1227 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: 1958 Views
  • stevanovich
    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
    Forum Moderator
    1796 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');

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.