title: How to Create TinyMCE Dialogs?
body: <p>Ok, the answer to this question really aught to be a whole lot easier if I could just find the relevant information within TinyMCE's documentation, but I cannot. What I want to do is the following:</p>
  
  <ol>
  <li>User either selects text within the TinyMCE editor or not</li>
  <li>User clicks the button</li>
  <li>Dialog opens with the selected text in one of three fields (I want to be able to create a bit.ly link from a full URL in the editor)</li>
  <li>User clicks OK, magic happens, and they get sent back to the editor with the newly-changed content.</li>
  </ol>
  
  <p>So basically, all I really need is to know how to make the popup work, at least for now. Trouble is: searching by "tinymce popup," "tinymce dialog" "tinymce prompt user" all come up with nothing useful that I can see.</p>