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:
- User either selects text within the TinyMCE editor or not
- User clicks the button
- 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)
- User clicks OK, magic happens, and they get sent back to the editor with the newly-changed content.
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.