Problem/Motivation

- CKEditor 5 + IMCE using "Insert image" button does not work out of the box

Steps to reproduce

- Install IMCE on CKE5 site, only use Insert image -button (don't drag IMCE File Browser button to CKE5)
- Use the "Open File Browser" button next to text field with label "Insert image via URL" to open up IMCE
- Click on an image and click Select
- The image does not get inserted to the WYSIWYG content

Proposed resolution

- Attached MR fixes the issue
- The problem is that after el.dispatchEvent(new CustomEvent('input')); in custom sendto handler fires in js/plugins/ckeditor5/imce.ckeditor5.js, the image does not get actually inserted to the CKE5 content

Issue fork imce-3334548

Command icon 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

j-vee created an issue. See original summary.

wongjn’s picture

Status: Needs review » Reviewed & tested by the community

Tested and works great.

  • ufku committed 0f475bb4 on 3.x
    Issue #3334548: Auto submit ckeditr5 image/link selector dialogs
    
ufku’s picture

Title: Selecting an image using IMCE in Insert image via URL dropdown does not work in CKEditor 5 » Auto submit CKEditor 5 image/link selector dialogs
Version: 3.0.6 » 3.x-dev
Assigned: j-vee » Unassigned
Category: Bug report » Feature request
Status: Reviewed & tested by the community » Fixed

This was actually intended to allow the user submit the form manually after seeing the image/link URL. However it seems more practical to auto-submit the form.

Fixed in dev branch

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.