You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by godin <go...@essec.fr> on 2007/11/16 17:24:53 UTC

tinymce ajax submit

Hi,
doe somebody manage to make tinymce work with an ajax submit button
regards
Marc

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


Re: tinymce ajax submit

Posted by jchappelle <jc...@4redi.com>.
Has that code been posted for wicketstuff-1.3? I am using the old
wicket-contrib-tinymce-1.3-SNAPSHOT.jar. Where would I find an updated
snapshot?

Thanks,

Josh



sander v F wrote:
> 
> For a project I also needed a AjaxSubmitLink to submit the tinyMce data,
> so
> i've searched for a solution and found it at
> http://dwairi.blogspot.com/2006/12/tinymce-ajax.html
> The solution is to add "tinyMCE.triggerSave(true,true);" to the onclick of
> the ajax button/link before the wicket code is called.
> 
> I made a nice Wicket AttributeModifier (TinyMceAjaxSubmitModifier) which
> can
> be added to the ajax button/link and I also made a TinyMceAjaxButton and
> TinyMceAjaxSubmitLink for easier use.
> 
> These component are added to the wicket-contrib-tinymce project.
> 
> 
> 
> 2008/2/19 Igor Vaynberg <ig...@gmail.com>
> 
>> tinymce replaces the textarea with an iframe. after that it installs
>> an onsubmit hook to detect when the form is submitted and does the
>> opposite. since you are submitting via ajax form's onsubmit() is never
>> called and so tinymce doesnt replace the iframe with a textarea piror
>> tp submit. you need to look at what that callback calls and call it
>> yourself....
>>
>> -igor
>>
>> On Feb 19, 2008 2:55 AM, Benjamin Ernst <be...@gmail.com> wrote:
>> > Hi Marc,
>> >
>> > I have the same problem. When i am submitting a textarea with a
>> > TinyMCEBehavior the model of the textarea does not get updated.
>> > I am interested in your solution, but I do not understand it.
>> >
>> > It would be nice if you (or anyone else) could explain it for me.
>> >
>> > Thanks in advance,
>> > Benjamin
>> >
>> > 2007/11/19, godin <go...@essec.fr>:
>> >
>> > >
>> > > godin a écrit :
>> > > > Frank Bille a écrit :
>> > > >> Hi,
>> > > >>
>> > > >> Do you have problems with it?
>> > > >>
>> > > >>
>> > > >
>> > > > yes , the submit work half a time ....
>> > > > i will investigate it more
>> > >
>> > >
>> > > Ok find a workaround,
>> > > pb on mozilla, use a decorator
>> > > super.decorateScript("tinyMCE.triggerSave(true,
>> > > true);"+script+"tinyMCE.idCounter=0;");
>> > >
>> > > regards marc
>> > > Wicket rocks !
>> > > >> I tried it over a year ago, and as far as I remember there was
>> > > >> nothing to
>> > > >> it. That was Wicket 1.2.3 and tinymce from back then.
>> > > >>
>> > > >> Frank
>> > > >>
>> > > >> On Nov 16, 2007 5:24 PM, godin <go...@essec.fr> wrote:
>> > > >>
>> > > >>
>> > > >>> Hi,
>> > > >>> doe somebody manage to make tinymce work with an ajax submit
>> button
>> > > >>> regards
>> > > >>> Marc
>> > > >>>
>> > > >>>
>> ---------------------------------------------------------------------
>> > > >>> 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
>> > > >
>> > >
>> > > ---------------------------------------------------------------------
>> > > 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
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/tinymce-ajax-submit-tp13796517p20026094.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: tinymce ajax submit

Posted by sander v F <sa...@gmail.com>.
For a project I also needed a AjaxSubmitLink to submit the tinyMce data, so
i've searched for a solution and found it at
http://dwairi.blogspot.com/2006/12/tinymce-ajax.html
The solution is to add "tinyMCE.triggerSave(true,true);" to the onclick of
the ajax button/link before the wicket code is called.

I made a nice Wicket AttributeModifier (TinyMceAjaxSubmitModifier) which can
be added to the ajax button/link and I also made a TinyMceAjaxButton and
TinyMceAjaxSubmitLink for easier use.

These component are added to the wicket-contrib-tinymce project.



2008/2/19 Igor Vaynberg <ig...@gmail.com>

> tinymce replaces the textarea with an iframe. after that it installs
> an onsubmit hook to detect when the form is submitted and does the
> opposite. since you are submitting via ajax form's onsubmit() is never
> called and so tinymce doesnt replace the iframe with a textarea piror
> tp submit. you need to look at what that callback calls and call it
> yourself....
>
> -igor
>
> On Feb 19, 2008 2:55 AM, Benjamin Ernst <be...@gmail.com> wrote:
> > Hi Marc,
> >
> > I have the same problem. When i am submitting a textarea with a
> > TinyMCEBehavior the model of the textarea does not get updated.
> > I am interested in your solution, but I do not understand it.
> >
> > It would be nice if you (or anyone else) could explain it for me.
> >
> > Thanks in advance,
> > Benjamin
> >
> > 2007/11/19, godin <go...@essec.fr>:
> >
> > >
> > > godin a écrit :
> > > > Frank Bille a écrit :
> > > >> Hi,
> > > >>
> > > >> Do you have problems with it?
> > > >>
> > > >>
> > > >
> > > > yes , the submit work half a time ....
> > > > i will investigate it more
> > >
> > >
> > > Ok find a workaround,
> > > pb on mozilla, use a decorator
> > > super.decorateScript("tinyMCE.triggerSave(true,
> > > true);"+script+"tinyMCE.idCounter=0;");
> > >
> > > regards marc
> > > Wicket rocks !
> > > >> I tried it over a year ago, and as far as I remember there was
> > > >> nothing to
> > > >> it. That was Wicket 1.2.3 and tinymce from back then.
> > > >>
> > > >> Frank
> > > >>
> > > >> On Nov 16, 2007 5:24 PM, godin <go...@essec.fr> wrote:
> > > >>
> > > >>
> > > >>> Hi,
> > > >>> doe somebody manage to make tinymce work with an ajax submit button
> > > >>> regards
> > > >>> Marc
> > > >>>
> > > >>>
> ---------------------------------------------------------------------
> > > >>> 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
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
>
>

Re: tinymce ajax submit

Posted by Igor Vaynberg <ig...@gmail.com>.
tinymce replaces the textarea with an iframe. after that it installs
an onsubmit hook to detect when the form is submitted and does the
opposite. since you are submitting via ajax form's onsubmit() is never
called and so tinymce doesnt replace the iframe with a textarea piror
tp submit. you need to look at what that callback calls and call it
yourself....

-igor

On Feb 19, 2008 2:55 AM, Benjamin Ernst <be...@gmail.com> wrote:
> Hi Marc,
>
> I have the same problem. When i am submitting a textarea with a
> TinyMCEBehavior the model of the textarea does not get updated.
> I am interested in your solution, but I do not understand it.
>
> It would be nice if you (or anyone else) could explain it for me.
>
> Thanks in advance,
> Benjamin
>
> 2007/11/19, godin <go...@essec.fr>:
>
> >
> > godin a écrit :
> > > Frank Bille a écrit :
> > >> Hi,
> > >>
> > >> Do you have problems with it?
> > >>
> > >>
> > >
> > > yes , the submit work half a time ....
> > > i will investigate it more
> >
> >
> > Ok find a workaround,
> > pb on mozilla, use a decorator
> > super.decorateScript("tinyMCE.triggerSave(true,
> > true);"+script+"tinyMCE.idCounter=0;");
> >
> > regards marc
> > Wicket rocks !
> > >> I tried it over a year ago, and as far as I remember there was
> > >> nothing to
> > >> it. That was Wicket 1.2.3 and tinymce from back then.
> > >>
> > >> Frank
> > >>
> > >> On Nov 16, 2007 5:24 PM, godin <go...@essec.fr> wrote:
> > >>
> > >>
> > >>> Hi,
> > >>> doe somebody manage to make tinymce work with an ajax submit button
> > >>> regards
> > >>> Marc
> > >>>
> > >>> ---------------------------------------------------------------------
> > >>> 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
> > >
> >
> > ---------------------------------------------------------------------
> > 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


Re: tinymce ajax submit

Posted by Benjamin Ernst <be...@gmail.com>.
Hi Marc,

I have the same problem. When i am submitting a textarea with a
TinyMCEBehavior the model of the textarea does not get updated.
I am interested in your solution, but I do not understand it.

It would be nice if you (or anyone else) could explain it for me.

Thanks in advance,
Benjamin

2007/11/19, godin <go...@essec.fr>:
>
> godin a écrit :
> > Frank Bille a écrit :
> >> Hi,
> >>
> >> Do you have problems with it?
> >>
> >>
> >
> > yes , the submit work half a time ....
> > i will investigate it more
>
>
> Ok find a workaround,
> pb on mozilla, use a decorator
> super.decorateScript("tinyMCE.triggerSave(true,
> true);"+script+"tinyMCE.idCounter=0;");
>
> regards marc
> Wicket rocks !
> >> I tried it over a year ago, and as far as I remember there was
> >> nothing to
> >> it. That was Wicket 1.2.3 and tinymce from back then.
> >>
> >> Frank
> >>
> >> On Nov 16, 2007 5:24 PM, godin <go...@essec.fr> wrote:
> >>
> >>
> >>> Hi,
> >>> doe somebody manage to make tinymce work with an ajax submit button
> >>> regards
> >>> Marc
> >>>
> >>> ---------------------------------------------------------------------
> >>> 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
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: tinymce ajax submit

Posted by godin <go...@essec.fr>.
godin a écrit :
> Frank Bille a écrit :
>> Hi,
>>
>> Do you have problems with it?
>>
>>   
>
> yes , the submit work half a time ....
> i will investigate it more


Ok find a workaround,
pb on mozilla, use a decorator
 super.decorateScript("tinyMCE.triggerSave(true, 
true);"+script+"tinyMCE.idCounter=0;");

regards marc
Wicket rocks !
>> I tried it over a year ago, and as far as I remember there was 
>> nothing to
>> it. That was Wicket 1.2.3 and tinymce from back then.
>>
>> Frank
>>
>> On Nov 16, 2007 5:24 PM, godin <go...@essec.fr> wrote:
>>
>>  
>>> Hi,
>>> doe somebody manage to make tinymce work with an ajax submit button
>>> regards
>>> Marc
>>>
>>> ---------------------------------------------------------------------
>>> 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
>

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


Re: tinymce ajax submit

Posted by godin <go...@essec.fr>.
Frank Bille a écrit :
> Hi,
>
> Do you have problems with it?
>
>   

yes , the submit work half a time ....
i will investigate it more
> I tried it over a year ago, and as far as I remember there was nothing to
> it. That was Wicket 1.2.3 and tinymce from back then.
>
> Frank
>
> On Nov 16, 2007 5:24 PM, godin <go...@essec.fr> wrote:
>
>   
>> Hi,
>> doe somebody manage to make tinymce work with an ajax submit button
>> regards
>> Marc
>>
>> ---------------------------------------------------------------------
>> 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


Re: tinymce ajax submit

Posted by Frank Bille <fr...@apache.org>.
Hi,

Do you have problems with it?

I tried it over a year ago, and as far as I remember there was nothing to
it. That was Wicket 1.2.3 and tinymce from back then.

Frank

On Nov 16, 2007 5:24 PM, godin <go...@essec.fr> wrote:

> Hi,
> doe somebody manage to make tinymce work with an ajax submit button
> regards
> Marc
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>