0

I have no clue on what's happening here. I'm using the gem 'ckeditor' in my gemfile and just followed the guide to have //= require in application.js

Everything works smoothly in development, but after precompiling assets I have this javascript error in production:

Uncaught TypeError: Object #<Object> has no method 'apply'

I would like to solve the issue but maybe someone faced it before me and can help to solve it because I have no clue on what's happening there and a javascript error seems strange because the code is the same as in development.

Does anyone managed to use CKEditor with gem 'ckeditor'? If yes, which version and did you face the same issue as mine? How did you solve it?


Use combination of both general and selected styling.

img {width:620px;}
#exceptional_image {width:360px;}
4

1 に答える 1

0

問題の原因がわかりました。gemfile に古い uglifier バージョンがありました。

gem 'uglifier', '~> 1.0.3'

次のように更新します。

宝石「醜い人」、「> = 1.0.3」

に更新して2.1.1、問題を解決しました。

于 2013-05-20T21:42:05.600 に答える