Drag and Drop fields

Somebody know how to drag and drop fields from a double select into a HTML editor field.
I am creating a email system where users can compose html code and insert tags for email merge data