This shorter version didn't exactly work, had to replace the
"MooEditable" by "MooEditable-textarea". Otherwise it's alright :)
Do you think this bug possibly be fixed in a next release ? It's quite
annoying...
On 21 oct, 02:08, Pawel Krefta <
pawel.kre...@gmail.com> wrote:
> I'm suggesting shorter version
>
> $('your_textarea_id').retrieve('MooEditable').getContent();
>
> This also works.
>
> On Sep 3, 7:41 pm, tru10000 <
worshipf...@gmail.com> wrote:
>
> > Here's the code I used:
>
> > editor.saveContent();
> >form.grab(textarea);
> > textarea.inject(form);
> >form.submit();
>
> > You can just call saveContent() once before submitting. Also, I'm not
> > sure why I had theformgrab the textarea AND inject it back into the
> >formbefore submitting. But it works.
>
> > On Sep 3, 7:33 am, Gyanesh M Khanolkar <
gyanesh...@gmail.com> wrote:
>
> > > Thanks for your reply.
>
> > > Would you then advice that I call "saveContent();" in the function
> > > "editorKeyPress", so that the contents get saved in the text area as we type
> > > the content?
>
> > > On Thu, Sep 3, 2009 at 10:55 PM, tru10000 <
worshipf...@gmail.com> wrote:
>
> > > > It seems that when mooeditable starts up it grabs the textarea element
> > > > out of theformelement. So when yousubmittheform, it no longer
> > > > contains the textarea. So to get it to work, I had to make theform
> > > > grab the textarea back uponsubmit. Or you could inject the textarea
> > > > back into theformand thensubmit.
>
> > > > On Sep 3, 12:58 am, Gyani <
gyanesh...@gmail.com> wrote:
> > > > > Hi,
>
> > > > > I am referring to one of the examples you have given, where on
> > > > > clicking on thesubmitbutton "alert($('textarea-1').value);" returns
> > > > > the formatted text in the textarea.
>
> > > > > We are not using theSubmitbutton (input type=submit), but we are