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, Ed, biapar, Willr, Ingo, swaiba

[SOLVED] TinyMCE - Adding font, size and colour

Go to End

10 Posts   17292 Views


Community Member, 5 Posts

14 February 2009 at 1:23pm

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?



Community Member, 224 Posts

21 November 2009 at 4:02pm

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

Go to Top