Now CKEditor module checking all plugins from profiles and disable all which not exists - check start when u enter to CKEditor configuration page - if any plugin not exists warning is displayed and plugin is disabled automatically.



dczepierga’s picture

Status: Active » Fixed

Changes commited to GIT (diff)

vinmassaro’s picture

Thanks for your work on this. My test scenario is:

1. Site running CKEditor module 7.x-1.9 and CKEditor 3 (library)
2. Update to CKEditor module to 7.x-1.x-dev and CKEditor 4 (library)
3. Drush updatedb, drush cc all
4. Edit a page, CKEditor fails to load because of old syntaxhighlight plugin not existing
5. View admin/config/content/ckeditor which disables plugins
6. Edit page, CKEditor loads correctly

I need to perform step 5 programmatically inside ckeditor_update_7005. This is across 20+ sites, and users don't know to visit the CKEditor settings page to disable plugins so that the editor will work again. How can I do this in code? Thanks!

dczepierga’s picture

@vinmassaro, u can add sth like this in the end of update function:

  module_load_include('inc', 'ckeditor', 'includes/ckeditor.lib');
  module_load_include('module', 'ckeditor');

This will call a hook which is called when u disabling any module in Drupal - then CKEditor module scan all available plugins and disable all which cannot be found.

This should help you to update all your sites - remember only to update CKE library v4 before u run update.php script from Drupal.


mkesicki’s picture

Status: Fixed » Closed (fixed)