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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wim Leers’s picture

Project: Edit » Quick Edit
Version: 7.x-1.0-alpha1 » 7.x-1.x-dev
Status: Needs work » Postponed (maintainer needs more info)
Issue tags: +Needs issue summary update

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

nmillin’s picture

Title: IMCE update image » Can't Insert file from IMCE when using CKEditor
Assigned: parashutiki » Unassigned
Category: Feature request » Bug report
Status: Postponed (maintainer needs more info) » Active
Issue tags: -Needs issue summary update
FileSize
24.73 KB
16.39 KB

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

nmillin’s picture

Attaching patch because I ran into this again in a new site.

bezu60’s picture

Could this be related to this issue? https://www.drupal.org/node/2510192