Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I find solution. I had problem with module IMCE + Edit . When I want edit already inserted image via IMCE-browser, IMCE didnot retrn image URL and I search this code in file .../sites/all/modules/ckeditor/includes/ckeditor.utils.js
/**
* IMCE support
*/
var ckeditor_imceSendTo = function(file, win) {
var cfunc = win.location.href.split('&');
for (var x in cfunc) {
if (cfunc[x].match(/^CKEditorFuncNum=\d+$/)) {
cfunc = cfunc[x].split('=');
break;
}
}
CKEDITOR.tools.callFunction(cfunc[1], file.url);
win.close();
}
and pasted it to file .../sites/all/modules/edit/js/util.js
and IMCE now work.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2219259-insert-file-using-imce-3.patch | 561 bytes | nmillin |
#2 | imce-browser-with-js.png | 16.39 KB | nmillin |
#2 | imce-browser-with-NO-js.png | 24.73 KB | nmillin |
Comments
Comment #1
Wim LeersThis is not at all a usable patch. It also feels extremely hackish/unmaintainable.
Can you clarify what's going on here? Please update the issue summary and title.
Comment #2
nmillin CreditAttribution: nmillin commentedI ran into this same issue and the fix provided in the original post fixed my issue. I'm not sure if my issue is caused by me missing a setting in the CKEditor settings, but hopefully this will help.
I'm trying to insert an image using the CKEditor module and IMCE module. I am able to browse files in the IMCE popup, but I don't have an "Insert file" button. Adding the js to the bottom of the quickedit/js/util.js file solves this issue for me.
I've attached 2 screenshots to show the screen where the button is missing. I am not sure why this solution works and there isn't much documentation from the CKEditor module js file.
Please let me know how I can help.
Comment #3
nmillin CreditAttribution: nmillin commentedAttaching patch because I ran into this again in a new site.
Comment #4
bezu60 CreditAttribution: bezu60 commentedCould this be related to this issue? https://www.drupal.org/node/2510192