I am putting this link here 
http://tinymce.moxiecode.com/punbb/viewtopic.php?id=28
as this is the solution to problematic form submissions.

tinyMCE.triggerSave() might need to be called if you are using ajax or
components for your form submission. Hope this will be useful to
someone who searches the group.


On Nov 6, 4:18 am, Luther Goh Lu Feng <elf...@yahoo.com> wrote:
> Erm I know the issue already. Too complex to put in words.
>
> On Nov 6, 12:31 am, Luther Goh Lu Feng <elf...@yahoo.com> wrote:
>
>
>
>
>
>
>
> > I have implemeted the basic tinymce editor here:http://
> > wiki.moxiecode.com/index.php/
> > TinyMCE:For_Dummies#To_create_a_very_simple_TinyMCE_wysiwyg_Editor
>
> > In a normal view, tinymce works fine. The forms were constructed
> > manually using <form> and <textarea> tags (It's a long story why
> > sqlform isn't use but let's leave that for another time)
>
> > Now I have a 2 components: a comments list component and a comments
> > form component. Prior to the installation of tinymce, a comment
> > created will automatically update the comments list via ajax.
>
> > So what happens when I install tinymce? Well I am able to get the
> > editor over the text area. However there are some strange things. Upon
> > a fresh reload, the first form submission of the comments form will
> > always activate "Enter a value". The second submission (without
> > refresh), causes the form to be submitted, but this time, the comments
> > list won't be updated.
>
> > If this is helpful, the code to do the ajax update of the comments
> > form is as follows:
>
> > $('#comments_form').live('change', function(){
> >         $.get("{{=URL(a='roverus', c='comment', f='read.load',
> > vars={'current_worksheet':request.args[0]})}}", function(data){
> >                 web2py_component('/roverus/comment/read.load?
> > current_conversation=' + current_conversation, "conversation");
> >         });
>
> > })
>
> > I have tried looking at the javascript console but there are no
> > errors. Any tips to debug this is welcomed. Thanks in advance.

Reply via email to