CKEditor for Rails.
Note: Latest gem version uses CKEditor 3.6.1.
This gem vendors
CKEditor 3.6.1 for
Rails 3.1 and greater. The files will
be added to the asset pipeline and available for you to use.
//= require ckeditor
You can also use it standalone in your views:
Important: It's important you define the
variable before you include the
ckeditor code. This will make
work with the asset pipeline on production, otherwise you'll see a white screen
where CKEditor should be shown. More info here.
As with this version, ckeditor-rails will try to detect your asset settings and create CKEDITOR_BASEPATH variable accordingly.
In a Rails 3.1 apps include
ckeditor-rails in the Gemfile: