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
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 #3
wongjn commentedTested and works great.
Comment #5
ufku commentedThis 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