How to disable ckeditor cloudservices

2019-09-01 10:59发布

问题:

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?

回答1:

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).



回答2:

You should remove the plugin.

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

};