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.

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   18750 Views

Avatar
r_jake

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

forecolor,forecolorpicker

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?

Thanks.

Avatar
steve_nyhof

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