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

Avatar
Piklets

Community Member, 36 Posts

13 January 2009 at 5:31pm

Edited: 28/01/2009 9:06am

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

Community Member, 145 Posts

13 January 2009 at 7:50pm

What version are you using?

Avatar
Piklets

Community Member, 36 Posts

13 January 2009 at 8:33pm

2.2.3

Avatar
AdamJ

Community Member, 145 Posts

14 January 2009 at 1:35am

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

Community Member, 36 Posts

26 January 2009 at 4:40pm

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

Community Member, 81 Posts

28 January 2009 at 6:05am

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

Community Member, 36 Posts

28 January 2009 at 9:06am

"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

Community Member, 81 Posts

28 January 2009 at 9:26am

Okay very cool. Well done!

Go to Top