When we create a Image Gallery from the Media Modal Box and click on “Insert Gallery” button, the gallery shortcode is added to the main text area.
Is there a way to detect which Post Format is selected, and if its “Gallery” then is there a way to modify the action of the “Insert Gallery” button to add the shortcode to a meta box instead of the text area.