ruby on rails 4.2 - ckeditor doesnt show anything in the edit form and the dbms doesnt even load in the editor -
i tried ckeditor , works fine when adding or making new post problem when try , edit post.
it doesn't load , doesnt show code , or spec, shows pre default ckeditor list , doesn't show data coming database.
any great, , info awesome.
i have made form , rendering can call function so.
this _form
<p> <%= f.label :text %><br> <%= f.cktext_area :text, :value => 'default value', :id => 'sometext' %> </p>
now in edit
<%= render 'form' %>
i tried adding raw so
<%= raw render 'form' %>
or _form doesn't seem show properly
after tinkering , trying usual thing codes show it.
<p> <%= f.label :text %><br> <%= f.text_field :text %> </p>
when try , add shows here , ckeditor doesn't show properly.
just give this:
<p> <%= f.label :text %><br> <%= f.cktext_area :text %> </p>
i hope calling partial inside form_for.
Comments
Post a Comment