Controlling tinyMCE component

2008-10-27 Thread ash
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Controlling tinyMCE component

2008-10-27 Thread Sverre Boschman
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Controlling tinyMCE component

2008-10-27 Thread Александър Шопов
 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]