I'm trying to get the drag and drop functionality to work between browsers or between windows using HTML5 native DnD API. When setting the data type to 'text' in IE, it works, but if I embed a video and try to drag between browser, the data doesn't get replaced, but it moves to the next block in the list. Is there a way to fix this problem in both IE and Firefox?

有帮助吗?

解决方案

I found a solution for this, so you need to use .getData() and then use .innerHTML to set it as an element.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top