title: How to use WordPress 3.5 media manager gallery tool for my own plugin
body: <p>In the WordPress 3.5 media manager under the "Create Gallery" tab, users can choose multiple images and then have the ability to reorder images in a second page. When done, it inserts a shortcode such as: <code>[gallery ids="895,1007,986"]</code></p>
  
  <p>I would like to use this same interface so that users can select and reorder images. However, instead of returning a shortcode, I would like to return just a list of ID's of the images like so: <code>895,1007,986</code></p>
  
  <p>Another important thing is that my button will be in a metabox and the list of ID's will not be placed inside TinyMCE post edit area.</p>
  
  <p>How can I achieve this?</p>
  
  <p>Thank You.</p>