Mike Alsup, you are my hero! :)

On Aug 14, 1:19 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> Magnus,
>
> Add
>
> tinyMCE.triggerSave();
>
> before you iterate the inputs.
>
> Mike
>
> On 8/13/07, Maggi <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hey guys!
>
> > I just wanted to check if someone knows how to implement TinyMCE into
> > a Ajax Form Submit script?  It looks like TinyMCE ( the WYSIWYG
> > editor ) writes the data in it's iframe into the hidden textarea but
> > it does not do so until after the code below has finished:
>
> >                 $('#new_textfield').submit(function() {
> >                         var inputs = [];
> >                         $(':input', this).each(function() {
> >                                 inputs.push(this.name + '=' + 
> > escape(this.value));
> >                         });
> >                         console.log(inputs.join('&'));
> >                         return false;
> >                 });
>
> > So when I click "Submit" the first time, it just displays the textarea
> > as empty, but the second time I click "Submit" it displays the text.
>
> > Can anyone turn me into the right direction?
>
> > Sincerely,
> > Magnus

Reply via email to