Jump to:

23377 Posts in 18296 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » [SOLVED] TinyMCE - Adding font, size and colour

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

Page: 1 2
Go to End
Author Topic: 12797 Views
  • r_jake
    Avatar
    Community Member
    5 Posts

    Re: [SOLVED] TinyMCE - Adding font, size and colour Link to this post

    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.

  • steve_nyhof
    Avatar
    Community Member
    224 Posts

    Re: [SOLVED] TinyMCE - Adding font, size and colour Link to this post

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

    12797 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.