Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CKEditor and Poltergeist/PhantomJS - [CKEDITOR.resourceManager.load] Resource name "default" was not found at "http://cdn.ckeditor.com

[CKEDITOR.resourceManager.load] Resource name "default" was not found at "http://cdn.ckeditor.com/4.4.7/full/styles.js?t=F0RD".

I intermittently run into this error while running integration tests in Poltergeist. While researching the issue I've seen some older threads with this problem related to actual missing assets, but the library is being loaded from the CDN so I have no control over the assets.

Any ideas?

like image 813
Constant Meiring Avatar asked Mar 21 '15 14:03

Constant Meiring


1 Answers

This solved in my case:

page.execute_script <<-SCRIPT
  var CKEDITOR_BASEPATH = '/assets/ckeditor/';
SCRIPT
like image 61
MaicolBen Avatar answered Oct 30 '22 06:10

MaicolBen