wp.media issue with selected image
custom_uploader is actually an instance of wp.media() and not an HTML element, so the variable does not have a onselect property, but it does have a on() method/function which you can use to listen to the select event which is triggered after an attachment is selected. Secondly, an HTML element does not have a innerHTML() … Read more