Jump to:

22976 Posts in 11702 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » tinymce font color

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
Go to End
Author Topic: 4245 Views
  • erwanpia
    Avatar
    Community Member
    63 Posts

    tinymce font color Link to this post

    Hi, I am at this problem again : would like to add font color chooser / picker to tinymce on 2.2.3. Of course I would love to use 2.3 but not sure to be able to migrate my site

    I have hacked the saphire/forms/HtmlEditorField.php , added a line after line 298

       new HtmlEditorField_button("forecolorpicker","forecolorpicker",_t('HtmlEditorField.FORECOLOR', "Couleur")),

    that picks up to colorpicker, but when I click apply, I get a javascript error from editor_template_src.js (line352)

    n is null
    [Break on this error] img = tinyMCE.selectNodes(document.g...on(n) {return n.nodeName == "IMG";})[0];

    can anybody sort this out ? we're close

    E.

  • Terminator4
    Avatar
    Community Member
    81 Posts

    Re: tinymce font color Link to this post

    Why you creating a color picker? There is an easier way...

    Have a look at the plugin that has been created @ http://tinymce.moxiecode.com/punbb/viewtopic.php?id=4933

    4245 Views
Page: 1
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.