When using Drupal 11.2 with CKEditor5, inserting more than 2 images via the "Insert image from URL" option (core image plugin) triggers a JavaScript error and breaks further image insertion.
- Install a fresh Drupal 11.2.3 site with PHP 8.3.19.
- Go to Configuration → Content Authoring → Text formats and editors.
- Edit a text format (e.g., “Full HTML”).
- Under the Image tab, uncheck "Enable image uploads" to reveal the "Insert image via URL" button in CKEditor.
- Create new content.
- Type some text into the CKEditor body.
- Use the "Insert image via URL" button to insert 2 images (one by one).
→ works fine. - Try to insert a third image via URL.
→ Nothing happens. Doesn't open a pop-up to insert the image view URL, and shows an error in the console.

Proposed resolution
- Investigate CKEditor 5 integration code for how the "Insert image via URL" form is managed.
- Ensure the balloon panel view removal is only attempted if it exists.
- Consider upstream CKEditor 5 patch if this originates in their plugin.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | drupal-ckeditor-issue.gif | 9.29 MB | a6hijeet |
| #4 | drupal11-ckeditor5-editor2.png | 267.35 KB | a6hijeet |
| #4 | drupal11-ckeditor5-editor.png | 235 KB | a6hijeet |
| drupal11-ckeditor5-issue.png | 48.79 KB | a6hijeet |
Issue fork drupal-3540967
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
a6hijeet commentedComment #3
cilefen commentedI can't reproduce this on the 11.x branch. Possibly steps 7 and 8 need refinement.
Comment #4
a6hijeet commentedI am on Fresh Drupal 11.2.3 without any contrib modules
Just adding the steps here to reproduce the issue
Comment #5
cilefen commentedThat is what I did but there were not errors.
Comment #6
a6hijeet commentedAh, Ok Thanks for checking.
I retested, and I am still able to reproduce it with the same step in another fresh installation.
The behaviour occurs in Chrome (Version 139.0.7258.67) and Edge (Version 139.0.3405.86), but I could not reproduce it in Firefox (141.0.3)
Comment #7
quietone commented@abhijeetsatpute, can you confirm this happens on 11.x ?
In Drupal core changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies. Also mentioned on the version section of the list of issue fields documentation. Thanks.
Comment #8
a6hijeet commentedYes, I can confirm this issue happens on the latest 11.x development branch as well.
Behaviour pattern:
Comment #9
a6hijeet commentedIt seems the contextual balloon is being removed unexpectedly after the second successful insert, which prevents the insert form from opening again.
Comment #11
quietone commentedI was not able to reproduce this on 11.x with Firefox (140.10.2ESR)
I was able to reproduce this on Thorium, Version 138.0.7204.303 (Official Build) stable, built on Ubuntu (AVX) (64-bit), on 11.x and on main.