Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

Customising TinyMCE Font size and colour


Go to End


2 Posts   3381 Views

Avatar
stevanovich

Community Member, 63 Posts

23 September 2010 at 10:09pm

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.

Avatar
swaiba

Forum Moderator, 1899 Posts

24 September 2010 at 12:40am

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');