Konstantinos Pachnis
unread,Apr 1, 2011, 12:26:17 PM4/1/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SimpleForm
Hi,
I am trying to use simple_form with TinyMCE using the tiny_mce gem,
but unfortunately I am unable to submit the form.
This is the snippet from the view code
<%= perk_form.input :description, :input_html => { :class =>
'mceEditor' } %>
The generated html for this creates the text_area and shows TinyMCE
but the its class value is "text required mceEditor", the result is
that the form can not be posted.
If I change the code to
<%= perk_form.text_area :description, :class => 'mceEditor' %>
it works, but the TinyMCE is not validated with simple_form.
Any thoughts how I could overcome this would be really appreciated.
Thanks in advance,
Konstantinos