I\'m starting to experiment with HTML5 Drag and Drop. Then, in the dragstart event handler we should run setData()
, which receives two parameters: format
Use 'application/json' as a wrapper for any other metadata that you may like, including mime-type of linked files, or the html you want to use in the browser.
{ 'assets': [
{
'color': 'foo',
'text': 'bar',
'uri': 'http://', // location of asset
'type': 'application/zip', // mime-type of asset
'html': 'html representation'
// .. more properties
}
// ...more assets
]
}