Page 1 of 1

Textarea only submits with HTML selected

PostPosted: Wed Jun 04, 2008 10:37 pm
by mearso
Hi All

Having a strange problem , that when I hit submit the editor does not submit the text. However, If i hit the HTML button, then submit the submission works fine. The HTML selcetion, must be the last thing before a submit. Any ideas what this might be?

Using Ruby on Rails, and the textarea is being called with the class of 'wymeditor'

Any help to point me in the right direction to track this down is much appreciated.

Re: Textarea only submits with HTML selected

PostPosted: Thu Jun 05, 2008 7:01 pm
by jfh
Hi, you've to put the 'wymupdate' class on the submit button.
See http://trac.wymeditor.org/trac/wiki/0.5 ... xplanation

Re: Textarea only submits with HTML selected

PostPosted: Tue Jun 10, 2008 8:12 am
by mearso
Thanks for that - adding that class has done the trick.

Re: Textarea only submits with HTML selected

PostPosted: Thu Jul 10, 2008 12:46 pm
by smarques
Hi, is there any other way to have textarea submit correctly without having to set this class on the submit button?

Re: Textarea only submits with HTML selected

PostPosted: Mon Jul 14, 2008 6:23 pm
by jfh
Yes, by using wym.update() whenever you want to update the element replaced by WYMeditor.
http://trac.wymeditor.org/trac/wiki/0.5/API#update