Is there a way how i can set the file (html file) to javascript event.dataTransfer on the fly?
Lets say i am dragging the div element but underneath i want to drop html file.
The drop zone will be email client, ms word or some other text editor (not a web page).
I see its possible to drag images, text and html from browser, but i cant find out if its possible with files.
I create file like this:
const f = new File(['<html><body><p>start</p></body></html>'], 'filename.html', {
type: 'text/html',
lastModified: new Date().getTime(),
});