{"issue":{"created_at":"2011-08-18T18:34:39Z","state":"open","updated_at":"2011-12-14T07:58:23Z","user":{"gravatar_id":"734b8e134dce213006b6780a399ac32e","id":95872,"url":"https://api.github.com/users/aslam","login":"aslam","avatar_url":"https://secure.gravatar.com/avatar/734b8e134dce213006b6780a399ac32e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":8,"body":"I am using Rails 3.0.7 too. ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]. I've followed the steps in the README to the point and have included the ckeditor.js file as needed. The file loads but the editor is not shown throwing \"CKEDITOR is not defined\" error. \r\n\r\nFurther, I am using simple_form for my form builder and am using it like this:\r\n<%= simple_form_for(@police_intimation) do |f| %>\r\n  <div class=\"inputs\">\r\n    ...\r\n    <%= f.ckeditor :content, :label => false, :input_html => { :toolbar => 'Full' } %>\r\n    ...\r\n  </div>\r\n<% end %>\r\n\r\nThis produces this on the form:\r\n<script type=\"text/javascript\">\r\n//<![CDATA[\r\nif (CKEDITOR.instances['police_intimation_content']) {CKEDITOR.remove(CKEDITOR.instances['police_intimation_content']);}CKEDITOR.replace('police_intimation_content', { class: 'text optional',language: 'en',toolbar: 'Full' });\r\n//]]>\r\n</script>\r\n\r\nWhich throws up \"CKEDITOR is not defined\" error. I am not sure what is going wrong here.\r\n","assignee":null,"id":1434263,"number":17,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"title":"\"CKEDITOR is not defined\" problem","html_url":"https://github.com/galetahub/ckeditor/issues/17","closed_at":null,"url":"https://api.github.com/repos/galetahub/ckeditor/issues/17","milestone":null},"action":"created","comment":{"created_at":"2011-12-14T07:58:22Z","updated_at":"2011-12-14T07:58:22Z","user":{"gravatar_id":"bb365e8477053edcc55b40c3d27781d8","id":543859,"url":"https://api.github.com/users/karpah","login":"karpah","avatar_url":"https://secure.gravatar.com/avatar/bb365e8477053edcc55b40c3d27781d8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Same error. I believe it's because the Javascript to create the editor is called before the JS file has fully loaded, throwing the error.","id":3136661,"url":"https://api.github.com/repos/galetahub/ckeditor/issues/comments/3136661"}}