I've solved it with the following
@Override
protected IAjaxCallDecorator getAjaxCallDecorator() {
return new AjaxCallDecorator(){
private static final long serialVersionUID = 4430011596296790970L;
@Override
public CharSequence decorateScript(CharSequence script) {
return "tinyMCE.triggerSave(true
Nicolas,
Your proposal work. But I have my TinyMCE in a modal window and it has
stopped to close. In the other case, I don't get any string in text area,
but my modal window close. I need both. Any suggestion?
thanks in advance
On Mon, May 3, 2010 at 12:06 PM, nicolas melendez wrote:
> hey
hey!
do this:
add to the page a hidden ajaxSubmitLink and se it an id, for example:
"submitToServer". In the onclick java method of the hidden ajaxSubmitLink
do your java magic server-side.
Then in your submit button of the html page, add a small javascript that
save HTML and then clicks the hidd
I run into the same problem. I cant see the text written in text area. Could
show the code you have written?
thanks in advance
On Mon, May 3, 2010 at 4:04 AM, Robert Kimotho wrote:
> On your AjaxButton add TinyMceAjaxSubmitModifier.
>
> Kimotho.
>
> On Fri, Apr 30, 2010 at 12:53 AM, Brad Grier
On your AjaxButton add TinyMceAjaxSubmitModifier.
Kimotho.
On Fri, Apr 30, 2010 at 12:53 AM, Brad Grier wrote:
> I'm trying to use a TinyMCE editor on a form (itself belonging to a panel
> added to a page via Ajax). The form is submitted via an AjaxButton. From
> other posts here and elsewhere I
I'm trying to use a TinyMCE editor on a form (itself belonging to a panel added
to a page via Ajax). The form is submitted via an AjaxButton. From other posts
here and elsewhere I found I had to call "tinyMCE.triggerSave(true,true);"
before the submit to get the data into the textarea's model an