Hello,
I am trying to use CKEdit in a text area on my form in ruby on rails application.
i saw a post on stack overflow that looked pretty simple, so I tried it. It is almost working.
I am testing in safari, the widget comes up, but I can't type into in.
I used the following technique:
1 ) I added <%= javascript_include_tag "ckeditor/ckeditor.js" %> to my application.html.erb
2) I added the ckeditor directory to my assets/javascripts, I removed the _source.
3) to my form I added the script
4) I added this to my form field named richytext
Any help or advice is appreciated. Thanks.
I am trying to use CKEdit in a text area on my form in ruby on rails application.
i saw a post on stack overflow that looked pretty simple, so I tried it. It is almost working.
I am testing in safari, the widget comes up, but I can't type into in.
I used the following technique:
1 ) I added <%= javascript_include_tag "ckeditor/ckeditor.js" %> to my application.html.erb
2) I added the ckeditor directory to my assets/javascripts, I removed the _source.
3) to my form I added the script
<script language="javascript" type="text/javascript"> $(document).ready(function() { if ($('textarea').length > 0) { var data = $('textarea'); $.each(data, function(i) { CKEDITOR.replace(data[i].id); }); } }); </script>
4) I added this to my form field named richytext
<%= f.text_area :richytext, :class =>"ckeditor" %>
Any help or advice is appreciated. Thanks.