Currently I am developing a plugin where a user can upload a image. When the image is uploaded it returns a <p> tag with the link associated to that specific image.
Anyway, I want to create a insert to post button that takes that echo'd p tag and inserts it right in to the new post window. I know this is possible because the media uploader has this button. But I can't find the code that makes the button function properly so I have no idea how it's working.
Any help would be greatly appreciated.
-How do I make an Insert to Post button inside of my plugin??