What is the event listener for selecting an image in the media.editor javascript. I am attempting to add a multiple image selector to a custom plugin, and I need to show the user what images they have selected, before actually hitting the ‘Select’ button or the ‘Insert’ button. I have the media.editor configured like this:
file_frame = wp.media.frames.file_frame = wp.media({
title: $(this).data('uploader_title'),
button: {
text: $(this).data('uploader_button_text')
},
multiple: true,
library:{type:'image'}
});
Setting multiple to true doesn’t seem to do anything different than setting it to false. In other words before the user goes to insert the images, what is the event callback that will listen to whether or not an image is checked for selection? The ‘select’ event is not it. Is there an API for the media.editor script?