RE: TinyMCE ajax load

2008-12-17 Thread Sverre Boschman
Maybe my response to Martijn Lindhout's question regarding 'TinyMCE in
an Ajax loaded panel' can be of any use.

Sverre


-Oorspronkelijk bericht-
Van: Pointbreak [mailto:pointbreak+wicketst...@ml1.net] 
Verzonden: woensdag 17 december 2008 17:55
Aan: Wicket Users Mailing List
Onderwerp: Re: TinyMCE ajax load

This will happen if your tabbed panel removes the actual content (dom
elements) that contains the editor. I would suggest to let your tabbed
panel make its content invisible, not remove dom elements.
But if you don't want to change the panel, you can simply add the
component that has your tinymcebehavior to the target of the ajax
request when switching back to the original panel. This will
reinitialize your tinymce editor.

On Wed, 17 Dec 2008 19:46 +0330, Omid Alamdar Milani
omil...@gmail.com wrote:
 I'm trying to have an ajax tabbed panel where editor is in one of the
 tabs. When page is first showed, the editor tab is active and
 everything works fine, but when user changes tab and again returns to
 editor tab it doesn't load and plain text area is showed. So it isn't
 a problem with loading javascripts, they're already loaded.
 
 On Wed, Dec 17, 2008 at 6:21 PM, Pointbreak
 pointbreak+wicketst...@ml1.net wrote:
  If by load with ajax you mean that the javascript sources are
loaded
  on ajax requests, instead of with the initial page, then no, that is
not
  supported. The ajax parameter that was available in old 1.3
snapshots
  did not work properly. It has been removed for some time now (also
in
  latest 1.3-snapshots).
  There is ajax support (e.g. an InPlaceEditComponent), but all
javascript
  will be loaded normally.
 
  On Wed, 17 Dec 2008 17:57 +0330, Omid Alamdar Milani
  omil...@gmail.com wrote:
  Hi,
  Is there a way to load tiny mce editor with ajax?
  1.3 snapshot has an ajax parameter and works correctly on firefox
but
  doesn't work on IE. The latest 1.4 snapshot works fine with IE but
the
  ajax parameter is gone and I couldn't find a way to load it with
ajax.
 
 
-
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
-
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 

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


No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.9.16/1842 - Release Date:
16-12-2008 18:11

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



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]