Integrating CKEditor with Rails 3.2

后端 未结 12 1594
一整个雨季
一整个雨季 2021-02-02 04:27

Similar to Integrating CKEditor with Rails 3.1 Asset Pipline

I am trying to integrate ckeditor with my rails 3.2 application.<

12条回答
  •  [愿得一人]
    2021-02-02 05:00

    There are many recent posts on this subject, but none of them (including defining the BASEPATH as suggested above) worked for me, so I thought this might be helpful to some people.

    I solved the problem by copying the files from directory with the path

    ~/.rvm/gems/ruby-1.9.3x/gems/ckeditor-3.7.0.rc3 (the 'x' is app-specific, yours would be different)

    to the directory /assets/javascript.

    Then I was able to edit the configuration for the toolbar in the config.js file to make the editor have the options I wanted. This works perfectly for me since I always want the same options in this app.

    UPDATE

    I now have it working with the config.js file in the asset pipeline, where it belongs, but with the reset of the ckeditor code residing in my .rvm gemset. I think there was a conflict because I was trying to redefine their toolbar, named "Easy." When I made a new toolbar & set that one to be active, the pipeline seems to work fine.

    ruby-on-rails-3.2 ckeditor

提交回复
热议问题