CKEditor "Insert Images Using Imce File Manager button" not working

Created on 4 August 2023, over 1 year ago
Updated 7 August 2023, over 1 year ago

Drupal 9.5.10
Imce 3.0.8

The regular Insert Image button of Ckeditor 5 is working fine with Imce. ("Enable image uploads" turned off.)

However, the Insert Images Using Imce File Manager button is not.
The File Manager window pops up. All functions (upload, delete etc) are working fine.
The Select button (or double clicking an item) does nothing. Popup remains open. Nothing changes in the editor window.
The following error is logged in the console of the popup:

Uncaught TypeError: imce.itemsHtml is not a function
    at finish (/modules/contrib/imc….js?v=9.5.10:143:25)
    at Object.customComplete (imce.js?v=9.5.10:406:11)
    at imce.ajaxComplete [as complete] (imce.js?v=9.5.10:1341:15)
    at c (jquery.min.js?v=3.6.3:2:28599)
    at Object.fireWith (jquery.min.js?v=3.6.3:2:29344)
    at l (jquery.min.js?v=3.6.3:2:80456)
    at XMLHttpRequest.<anonymous> (jquery.min.js?v=3.6.3:2:82782)

Marked as "Minor" because I will continue to use the default Insert Image button.

Additionaly, I suggest the size of the magnifying glass in that dropdown be enlarged. It took me some time to realize it was there (hence struggle with the other button.) As a temporary solution, I have made ".imce-selector-button.imce-url-button span" visible to display the "Open File Browser" text. It should make it easier for people used to the previous version.

🐛 Bug report
Status

Closed: cannot reproduce

Version

3.0

Component

Code

Created by

🇹🇷Turkey cegri

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

Comments & Activities

Production build 0.71.5 2024