Problem/Motivation
After updating to latest Drupal core (11.3.4) CKEditor has stopped working.
Steps to reproduce
1. Do a clean Drupal installation with Drupal core 11.3.4
drush si standard
2. Verify that CKEditor works as expected in any WYSIWYG field (e.g. /node/add/page)
3. Install and enable latest version of the module
composer require 'drupal/editor_advanced_image:^3.1'
drush en editor_advanced_image -y2. Check any WYSIWYG field once more -> CKEditor is no longer loading. Browser console should be reporting error
CKEditorError: plugincollection-plugin-invalid-constructor {"name":"e"}
| Comment | File | Size | Author |
|---|---|---|---|
| #19 | CleanShot 2026-03-13 at 11.55.40.mp4 | 6.47 MB | wengerk |
Issue fork editor_advanced_image-3577482
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
rhayun commentedThe key change is removing EditorAdvancedImageCommand from the requires array of the EditorAdvancedImage plugin in index.js
Comment #3
teebo commentedI am also having the same issue on a Drupal 10.6.5 site.
Like suggested by Ronen, removing EditorAdvancedImageCommand from the EditorAdvancedImage plugin index.js does not work in my case.
Would you have any other suggestions?
Thank you.
Comment #4
riaan burger commentedAlso edit the built and shipped editor_advanced_image/js/build/editorAdvancedImage.js - it is minified, so around the end you will find `static get requires(){return[o,c,e]`, just change that to `static get requires(){return[o,c]`.
Comment #5
wengerkI'll take a look on friday, in the meantime if someone willig to contribute I would review with pleasure.
Comment #7
riaan burger commentedI reproduced this on editor_advanced_image 3.1.2 with Drupal 10.6.5.
CKEditor fails with: CKEditorError: plugincollection-plugin-invalid-constructor
The cause appears to be that EditorAdvancedImageCommand is included in EditorAdvancedImage.requires(), even though it is a command rather than a plugin.
I opened a merge request that removes it from requires().
I also verified locally that rebuilding updates js/build/editorAdvancedImage.js accordingly, but I did not include the built artifact in the MR.
Comment #9
arturs.v commentedLooks like we managed to open some MRs at the same time. The more the merrier.
My MR essentially accomplishes the same, but includes the built artifact and updates CKEditor related dependencies in the package.json.
Comment #10
lisotton commentedI tested with MR !27 and it worked fine.
Moving to RTBC.
Comment #11
thomas kaisuka commentedNone of them worked for me on 11.3.5
Comment #12
riaan burger commentedThis module ships a built CKEditor bundle in js/build/editorAdvancedImage.js, and Drupal loads that file at runtime. Composer does not rebuild the module's JS during install/update.
So if you tested only a source-level change in js/ckeditor5_plugins/.../src/index.js, that may not affect the site unless the built file was also regenerated or patched.
Could you check whether your installed js/build/editorAdvancedImage.js still contains the bad requires() entry? As a local verification step, you could also try rebuilding the module bundle with:
npm install
npm run build
and then retest.
A future fixed release of this module should include the regenerated js/build/editorAdvancedImage.js.
If you already tested with a patched built file and it still fails on Drupal 11, then there may be a second compatibility problem beyond the invalid constructor.
Comment #13
riaan burger commentedYou can check with:
Comment #15
wengerkFixed and merged into
3.1.x.Thank you all for your dedicated time reviewing and fixing this issue — credits and attribution go to each and every one of you. 🙏
For those who wish to use a pre-release patch, I would suggest picking any from MR !27, MR !28, or MR !29.
Comment #18
giordy commentedOn Drupal 11.3.5, upgrading to 3.1.3 does not work.
Comment #19
wengerkI just tested this on both the 3.1.2 and 3.1.3 tags and recorded a video showing that the bug is present in 3.1.2 and properly resolved in 3.1.3.
https://www.drupal.org/files/issues/2026-03-13/CleanShot%202026-03-13%20at%2011.55.40.mp4
That said, I want to make sure we're not missing anything on your side. Could it be that another module is interfering and causing the issue to persist for you? It might be worth testing with only Editor Advanced Image enabled to help narrow it down.
Comment #20
musa.thomasSame as @giordy comment drupal 11.3.5, got 3.1.3 and still got the same error, if the module is disable everything is ok
Comment #21
wengerkCould you share steps to reproduce the issue from a clean Drupal install? That would really help us pinpoint what's going wrong on your end.
Also, one thing worth checking: is it possible your browser is serving a cached version of the Editor Advanced Image JavaScript from 3.1.2? A hard refresh (Ctrl+Shift+R / Cmd+Shift+R) or clearing your browser cache before testing on 3.1.3 could make a difference ?
Comment #22
musa.thomas@wengerk ok my bad it was the browser cache, I didnt try cause I disable and enable with drush cr but it was stupid to not refresh browser cache sorry. Everything seems ok.
Comment #23
wengerkGlad it was as trivial as a browser cache issue! No worries at all, it happens. Happy it's all working now! 😄
Comment #25
srdtwc commentedI seem to be having issues with 3.1.3 on 10.6.5 but only on my production environment. Upgrading from 3.1.2 fixed the issue on my dev and staging environments. Clearing caches, purging CF cache, etc seems to do nothing to fix it. The only workaround for the time being is to uninstall this module.
I've tried multiple browsers to try to isolate the issue but no luck yet.
Comment #26
giordy commentedIt was actually the browser cache.
Sorry and thank you.