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

[SOLVED] TinyMCE - Adding font, size and colour


Go to End
Reply

10 Posts   13124 Views

Avatar
Piklets

13 January 2009 at 5:31pm (Last edited: 28 January 2009 9:06am), Community Member, 36 Posts

Hey everyone!

I'm wondering if anyone has managed to get font, size or colour of text buttons in TinyMCE.

I have tried editing HtmlEditorField and all I ended up with was a JavaScript message 'undefined' when I tried adding 'forecolor'.

Thanks in advance!!

Avatar
AdamJ

13 January 2009 at 7:50pm Community Member, 145 Posts

What version are you using?

Avatar
Piklets

13 January 2009 at 8:33pm Community Member, 36 Posts

2.2.3

Avatar
AdamJ

14 January 2009 at 1:35am Community Member, 145 Posts

In 2.3.0 (currently at rc2, shouldnt be too far away from a stable release hopefully!) you can edit the TinyMCE template. I'm not sure you can easily in 2.2.3

Avatar
Piklets

26 January 2009 at 4:40pm Community Member, 36 Posts

I really need this! How do I do it in the latest version, if i have to have the latest version to do it??

Avatar
Terminator4

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

Hi,
I'm not too sure what is meant by a text-button - That is a new term to me! From what I understand you want to edit TinyMCE. Have a look at their website @ http://tinymce.moxiecode.com

Hope that helps

Avatar
Piklets

28 January 2009 at 9:06am Community Member, 36 Posts

"font, size or colour of text buttons"

I got it working in the latest version of SilverStripe, by editing the tinymce.template.js file, adding forecolor, fontselect and fontsizeselect to the configuration.

Avatar
Terminator4

28 January 2009 at 9:26am Community Member, 81 Posts

Okay very cool. Well done!

Go to Top