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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

Customising TinyMCE Font size and colour


Go to End


2 Posts   3983 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');