Skip to content

Cannot select file once uploaded #56

@Gijsbos

Description

@Gijsbos

Hi there, I was looking for a file picker and uploader and then I came across this FileManager which is awesome so far. But, everything works fine, uploading, thumbnails et cetera, but I assumed clicking on the thumbnail in the File Manager would close the File Manager window and insert the image in the tinyMCE (v4.x) content editor. Nothing happens, is this normal? Or am I doing something wrong.

EDIT: type is set to 1 and file_id not set but in:
if (external=="") {
var target = window_parent.document.getElementsByClassName('mce-img_'+track);
var closed = window_parent.document.getElementsByClassName('mce-filemanager');
$(target).val(base_url+path+file);
$(closed).find('.mce-close').trigger('click');
}

This does not work ->> $(target).val(base_url+path+file);

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions