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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

[SOLVED] TinyMCE - Adding font, size and colour


10 Posts   13104 Views


14 February 2009 at 1:23pm Community Member, 5 Posts

Could you please give a breakdown of how you got this to work? I don't fancy the upgrade to the RC.

So far I have added:

new HtmlEditorField_button("forecolorpicker","forecolor",_t('HtmlEditorField.FORECOLORPICKER', "Change text color")),

to HtmlEditorField.php

and have tried adding


to the theme_advanced_buttons1 array in tinymce.template.js

The button appears, and a picker pops up when clicked, but applying the colour has no affect.

Could you please give me a breakdown of the code you got to work? Currently I have the typography.css doc applying colour to the text - should this be disabled for it to work?



21 November 2009 at 4:02pm Community Member, 224 Posts

How is this done in 2.3.3 and the LeftAndMain.php file?