CKEditor和Poltergeist/PhantomJS - [CKEDITOR.resourceManager.load]在"http://cdn.ckeditor.com"找不到资源名称"default"

Con*_*ing 7 ckeditor phantomjs poltergeist

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

我在Poltergeist中运行集成测试时间歇性地遇到此错误.在研究这个问题的时候,我看到一些有这个问题的老线程与实际丢失的资产有关,但是从CDN加载了库,所以我无法控制资产.

有任何想法吗?

Mai*_*Ben 1

这在我的案例中解决了:

page.execute_script <<-SCRIPT
  var CKEDITOR_BASEPATH = '/assets/ckeditor/';
SCRIPT
Run Code Online (Sandbox Code Playgroud)