How can I connect to an existing wp.media object and capture the attachment ID when I click the Set Image button?
The wp.media tutorials, with which I seem to start with creating a new wp.media frame, but I just want to listen to events coming from an existing one (using the wp_editor () function), in particular the "Set Favorite Image" event.
source share