ckeditor: "CKEDITOR_BASEPATH" doesn't work correctly
Using
Rails 5.0.0.1 ruby 2.3.1p112 ckeditor-4.2.0
Bug
Even though CKEDITOR_BASEPATH is /assets/ckeditor, ckeditor is still searching assets/javascript/ckeditor.
For example,
When I put my downloaded skin at /assets/ckeditor/skins, the console gives me this 404 error

It looks like searching under /assets/ckeditor/skins.
However, when I put my skin /assets/javascripts/ckeditor/skins, it works.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 16
Exact problem I had the other day, spent 2 days fixing.
You need to reset the tmp cache:
Should fix it.
Alternatively, you can explicitly define the basepath as per these instructions;
Another issue you will have is with Sprockets.
Since skins have an
.mdfile by default, usinglink_tree(which is required for Sprockets 4+) will return an exception. You need to ensure you have registered the.mdmime_type:This also goes for any other unconventional extensions that may exist in the skins.
R
@richpeck Wow, thank you for giving me the solution!