Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot select file once uploaded #56

Open
Gijsbos opened this issue Jun 19, 2018 · 2 comments
Open

Cannot select file once uploaded #56

Gijsbos opened this issue Jun 19, 2018 · 2 comments

Comments

@Gijsbos
Copy link

Gijsbos commented Jun 19, 2018

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!

@trippo
Copy link
Collaborator

trippo commented Jun 19, 2018 via email

@Gijsbos
Copy link
Author

Gijsbos commented Jun 19, 2018

@trippo Thanks for the tip, funny thing is, when I keep the website open in Chrome, my macbook starts to heat up like crazy? I never even knew the sound of my fans working but this website nailed it ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants