Answer the question
In order to leave comments, you need to log in
Why does Ckeditor work weird?
I connect in ruby on rails ckeditor.
1) I include js - //= require ckeditor/init
2) I write a helper - <%= cktext_area :content, value: 'Default value', id: 'sometext' %>
The result is this:
The source code looks like this
: as if the tags are not inserted correctly, break off and everything breaks in the end. What to do with it?
Answer the question
In order to leave comments, you need to log in
Because the first 2 parameters are object_name, method or use on form_builder only with the method
Source code one and two , as your own and in other helpers in rails text_field for example So
you have two options:
or
<%= form_for @object do |form| %>
<%= form.cktext_area :content %>
<% end %>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question