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.

Customising the CMS /

Customising TinyMCE Font size and colour


Reply


2 Posts   2054 Views

Avatar
stevanovich

Community Member, 60 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, 1805 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');