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

tinymce font color


Reply

2 Posts   4364 Views

Avatar
erwanpia

23 January 2009 at 9:06am Community Member, 63 Posts

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.

Avatar
Terminator4

28 January 2009 at 6:10am Community Member, 81 Posts

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