EspCkeditor
CKEditor 3.6.2 for rails >= 3.1.0 project with el_vfs_client (optional) support.
Install
To Gemfile
gem 'esp-ckeditor'
and
$ bundle install
or
$ gem install esp-ckeditor
Usage
Use textarea with :class => :ckeditor
Add to your application.js
:
//= require esp-ckeditor
or include javascript_include_tag
in view:
<%= javascript_include_tag 'esp-ckeditor' %>
IMPORTANT: do not forget add the file to precompile additional assets in config/environments/production.rb
if you are include js via javascript_include_tag:
config.assets.precompile += %w( esp-ckeditor.js )
Customize settings CKEeditor
Run generator:
rails g esp_ckeditor:install_config
and customize vendor/assets/javascripts/esp-ckeditor/custom_config.js
IMPORTANT: do not forget add the file to precompile additional assets in config/environments/production.rb
:
config.assets.precompile += %w( esp-ckeditor/custom_config.js )
License
This project rocks and uses MIT-LICENSE.