tsechingho / ckeditor-rails

Integrate CKEditor javascript library with Rails asset pipeline
https://github.com/tsechingho/ckeditor-rails
MIT License
213 stars 132 forks source link

The included basepath.js.erb Always Overrides Custom basepath.js.erb #46

Open Undistraction opened 10 years ago

Undistraction commented 10 years ago

It seems that even if I add a custom basepath as described here, the basepath.js file included with the gem is always precompiled afterwards, overriding its value.

I include the custom file like this:

//= require ckeditor/basepath
//= require ckeditor-jquery

But looking at the generated application.js, though I can see the CKEDITOR_BASEPATH I define, the default basepath is included subsequently, overriding it.

It seems that even if I add my own basepath.js.erb file to javascript/ckeditor, the default basepath.js.erb file included with the gem is included after it, overriding the CKEDITOR_BASEPATH variable.