Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Greetings
Comments
Comment #1
dczepierga CreditAttribution: dczepierga commentedChanges commited to GIT (diff)
Comment #2
vinmassaro CreditAttribution: vinmassaro commentedThanks 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!
Comment #3
dczepierga CreditAttribution: dczepierga commented@vinmassaro, u can add sth like this in the end of update function:
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.Greetings
Comment #4
mkesicki CreditAttribution: mkesicki commented