tsechingho/ckeditor-rails

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

Undistraction opened this issue · 0 comments

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.