此时我正在使用此编辑器http://cksource.com/ckeditor 问题是当我以新表单访问时,textarea 不起作用,但如果我在浏览器中更新新表单,它可以正常工作
我的部分是这样的
<%= simple_form_for [@version, @documento], :html => { :class => 'form-horizontal' } do |f| %>
<table width="100%">
<tr>
<th>Nombre</th>
<td><%= f.input :name,
:label => false,
:input_html => {:style => 'width: 380px;'} %>
</td>
</tr>
<tr>
<th>Tipo de Documento</th>
<td>
<%= f.association :tipo,
:label => false,
:required => true,
:input_html => {:class => 'span2'}
%>
<%= link_to 'Nuevo',new_tipo_path, :remote => true %>
</td>
</tr>
<tr>
<th>Descripcion</th>
<td><%= f.input :descripcion,
:label => false,
:input_html => {:class => "ckeditor", :id => "descripcion"} %>
</td>
</tr>
</table>
<div class="form-actions">
<%= f.button :submit, :class => 'btn btn-primary', :value => 'Guardar Documento' %>
<%= link_to 'Cancelar', version_documentos_path(@version), :class => 'btn' %>
</div>
我能做些什么来解决这个问题?
非常感谢