I have been trying to create an extra tickbox that will intercept the wordpress gallery shortcode so that I can add my own parameters to the shortcode. So far I have managed to add an extra option to the div with class Gallery-Settings using the technique demonstrated here, except that I'm working with the
#tmpl-gallery-settings element instead of
The next part is to try to hook into the event that is fired when the create/update button is clciked action so that I can manipulate the shortcode. I think the biggest problem is finding a reference the instance of the current Media Gallery UI so that I can attach my own handler to the 'Update' event.
Is there any way to customise the way the gallery shortcode appears? From what I can tell, all I need to do is generate the shortcode as the title attribute for the gallery element in TinyMCE.
Thanks in advance for any ideas that pointer me in the right direction.