I'm making a WYSIWYG editor and I have something that lets you upload images, and drag those images and drop them into a textarea.

The only problem is I don't know how to get the textarea to recognize when something is being dragged over it, and also how to add the image to the textarea.

Any help would be appreciated.