5319 Posts in 1593 Topics by 1165 members
Page: 1 2
|Go to End||Next >|
7 April 2009 at 10:09pm Last edited: 7 April 2009 10:10pm
I am trying to add text size and text colour to HtmlEditor Field. I have added formatselect,fontsizeselect", to the tinymce.template.js which shows the button in the toolbar but has no effect!
This is driving me crazy, and I have gone through the forum trying to find the answer, and the question seems to have arised a number of times.
These buttons are just not adding any styles. I have tried changing themes to see if it is being controlled in my stylesheets, and have just tried installing the latest version of SS but still cant get it to work.
Can anyone help?
8 April 2009 at 12:35am Last edited: 8 April 2009 12:36am
I have done this without a problem....can't think of a reason why it would not be working for you as it adds the styles inline. To add font color simple add forecolor to the tinyMCE template:
Make sure there are no spaces as that seemed to break it for me.
8 April 2009 at 12:56am
I have just tried exactly as you described, added this line to the tinymce.template.js and it has added the colour text option, but when I try to use it, it only adds <p><span style="font-family: mceinline;">Test</span></p> to the text.
8 April 2009 at 1:10am
Thanks for posting, but still I cant get it to add any styles. I could understand that I may have some styles overriding it, but all that is showing is <span style="font-family: mceinline;">Test</span>
8 April 2009 at 1:20am
hmmm, I'm afraid I can't be much more help.....perhaps try it on a fresh install?
8 April 2009 at 1:40am
I think I may have solved my problem. I was flushing my browser, but it wasnt looking correct in safari, went into Firefox and it allowed me to apply inline styles through TinyMCE. Is this a Safari problem do you think?
I also looked through the TinyMCE site and found reference to applying -
inline_styles : true
which may have made a difference.
Thanks for your help
8 April 2009 at 1:48am
nice one, well done for tracking it down. I guess it must be a safar issue as it was still able to apply the inline style, just not the right one Also I can do it without adding that line. still good to be aware of
Page: 1 2
|Go to Top||Next >|