Rails 3.1 ckeditor

前端 未结 4 1894
死守一世寂寞
死守一世寂寞 2021-02-10 06:41

So I just tried to install ckeditor in rails, however it doesn\'t look like its working.

Here is what I did

added these lines to my gemfile

gem \         


        
4条回答
  •  深忆病人
    2021-02-10 07:01

    I had a similar issue when I was setting it up a while ago. I gave up on the gem eventually. The problem was getting ckeditor to behave in the asset pipeline, but I had mixed results depending on the browser (of course IE was the problem). Here is what worked for me:

    Download ckeditor package from their site and drop in to public/ckeditor.

    Then, directly include the javascript files.

    <%= javascript_include_tag "/ckeditor/ckeditor" %>
    <%= javascript_include_tag "/ckeditor/adapters/jquery" %>
    

    Not exactly elegant, but it worked and haven't had to touch it since.

提交回复
热议问题