CKEditor5: "contextualballoon-remove-view-not-exist" error when inserting multiple images via URL in core image plugin

Created on 12 August 2025, about 1 month ago

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.

  1. Install a fresh Drupal 11.2.3 site with PHP 8.3.19.
  2. Go to Configuration → Content Authoring → Text formats and editors.
  3. Edit a text format (e.g., “Full HTML”).
  4. Under the Image tab, uncheck "Enable image uploads" to reveal the "Insert image via URL" button in CKEditor.
  5. Create new content.
  6. Type some text into the CKEditor body.
  7. Use the "Insert image via URL" button to insert 2 images (one by one).

    → works fine.
  8. 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.
🐛 Bug report
Status

Active

Version

11.2 🔥

Component

ckeditor.module

Created by

🇮🇳India abhijeetsatpute

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @abhijeetsatpute
  • I can't reproduce this on the 11.x branch. Possibly steps 7 and 8 need refinement.

  • 🇮🇳India abhijeetsatpute

    Just adding the steps

    1. Type any text into the body field. (e.g., “Test paragraph”)
    2. Use the Insert image via URL button to insert an image → works fine.
    3. Use the Insert image via URL button to insert a second image → works fine but shows error in console

      Uncaught CKEditorError: contextualballoon-remove-view-not-exist

    4. Use the Insert image via URL button to insert a third image. → Nothing will happen, but you will see another error in the console

      Uncaught CKEditorError: collection-remove-404

  • That is what I did but there were not errors.

  • 🇮🇳India abhijeetsatpute

    Ah, 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)

  • 🇳🇿New Zealand quietone

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

  • 🇮🇳India abhijeetsatpute

    Yes, I can confirm this issue happens on the latest 11.x development branch as well.
    Behaviour pattern:

    • If I insert images without adding any text, I can insert multiple images without issue.
    • If I add text above and then insert images, only two images can be inserted successfully.
    • After saving the content, if I edit again and try to insert images, the same limitation occurs — only two images can be inserted.

Production build 0.71.5 2024