You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by as...@contact.bg on 2008/10/27 15:49:10 UTC

Controlling tinyMCE component

The tinyMCE component has two themes - simple and advanced.
When in simple - there is only one toolbar, when in advanced - three.
1. How can I remove toolbars? I could not find such an API.
2. How do I remove separators so that I can rearrange freely the buttons?
Kind regards:
al_shopov

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: Controlling tinyMCE component

Posted by Александър Шопов <as...@contact.bg>.
> So, for example, to disable the second toolbar row you can overwrite the
> toJavaScript method of the TinyMCESettings object and do something like
Thanx,
Seems just the right approach.
The toJavaScript way will allow me to do even further customizations.

Kind regards:
al_shopov


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: Controlling tinyMCE component

Posted by Sverre Boschman <Sv...@topicus.nl>.
The Wicket TinyMCE API (referring to the latest 1.3 snapshot release) is
indeed not as feature rich as one could have wanted.
But in the end the Wicket TinyMCE API just generates the javascript code
to initialize TinyMCE (see the TinyMCE website).

So, for example, to disable the second toolbar row you can overwrite the
toJavaScript method of the TinyMCESettings object and do something like
this:
   String buffer = super.toJavaScript(mode, components);
   buffer += ",\n\ttheme_advanced_buttons2 : \"\"";

Sverre


-----Oorspronkelijk bericht-----
Van: ash@contact.bg [mailto:ash@contact.bg] 
Verzonden: maandag 27 oktober 2008 15:49
Aan: users@wicket.apache.org
Onderwerp: Controlling tinyMCE component

The tinyMCE component has two themes - simple and advanced.
When in simple - there is only one toolbar, when in advanced - three.
1. How can I remove toolbars? I could not find such an API.
2. How do I remove separators so that I can rearrange freely the
buttons?
Kind regards:
al_shopov

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org