getAsString

Invokes the callback with the string data as the argument, if the drag data item kind is text.

MDN Reference