5102 Posts in 1520 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1984 Views |
-
TinyMCE configuration, add style select

7 February 2011 at 11:07pm
Hi
How to add options to style select ?
Tried to
HtmlEditorConfig::get('cms')->setOption(array('styleselect',array('first-style','second-style'));
HtmlEditorConfig::get('cms')->modifyButtons('styleselect','1','0',array('fist-style','second-style'));but nothing happend
-
Re: TinyMCE configuration, add style select

8 February 2011 at 2:00am Last edited: 8 February 2011 2:01am
Hi snaip.
Do you have a file called editor.css in the themes/<YourTheme>/css directory?
If not, create one. The editor will use all the styles defined in this file for its style-select.Cheers,
Christian -
Re: TinyMCE configuration, add style select

8 February 2011 at 3:55am
wwoooooow !! great !!
how did you know that and why i can't find it ? documentaction is still poor
-
Re: TinyMCE configuration, add style select

8 February 2011 at 4:46am
Whoopieeeh
how did you know that and why i can't find it
I can't remember... I think i have seen it on these forums somewhere, some time ago.
And since then i always use a editor.css in my projects.Cheers,
Christian
| 1984 Views | ||
|
Page:
1
|
Go to Top |


