I'm using the ckeditor
(https://github.com/galetahub/ckeditor) gem on Rails 3.2.11 / Ruby 1.9.3.
I've been getting this JS error after I do rake assets:precompile
on production environment (deployed to Heroku)
Uncaught TypeError: Object #<Object> has no method 'apply'
I don't know if it's relevant, but I've traced the error (using Chrome's webdev tools) to a block that starts:
CKEDITOR.plugins.add("basicstyles", ...)
which I assume is the plugin responsible for adding the bold, italic, underline, and other such font style buttons to the toolbar.
The textarea is still showing without the CKEditor UI.
I'm using the latest version (4.0.4) from rubygems.
I have this in my application.js
:
//= require 'ckeditor/init'
//= require 'ckeditor/config'
I have a custom config file in app/assets/ckeditor/config.js
and have two custom plugins in app/assets/ckeditor/plugins/
.
I've also tested it locally using RAILS_ENV=production
and also not working.