How to disable ckeditor cloudservices

2019-09-01 10:19发布

I'm working on a Drupal site that just updated its ckeditor library from 4.5.x to 4.9.2. On one of our servers the image button suddenly stopped appearing and I find the error "Error code: cloudservices-no-token-url." in the browser javascript console when I load any page with ckeditor.

I'm hoping I can disable cloudservices to resolve the error. I tried using config.removePlugins = 'easyimage'; in config.js. Are there other addons that use cloudservices I need to disable?

2条回答
爷、活的狠高调
2楼-- · 2019-09-01 11:06

The simplest way to get rid of EasyImage is not downloading it in the first place.

Please go to CKEditor download page and download the package you are interested in but without EasyImage (don't check EasyImage checkbox).

Alternatively use can use online builder. Please go to builder page, select one of predefined presets and plugins you like but don't include EasyImage plugin. If you are using CKEditor with CKFinder or some other custom file manager or uploader, you need to include File Browser plugin (available in Full and Standard presets by default).

查看更多
叼着烟拽天下
3楼-- · 2019-09-01 11:09

You should remove the plugin.

CKEDITOR.editorConfig = function( config ) {
:
:
:
   config.removePlugins = 'cloudservices';

};
查看更多
登录 后发表回答