Closed mattlenz closed 9 years ago
The problem is that React DnD (and DnD Core underneath it) don't support the notion of "multiple types" for simplicity. Maybe you should use HTML5 API directly instead if you want this. Another option is to make an umbrella type for all HTML5 types, and instead make the specific “subtypes” available on the item object so you can read them in canDrag
. That would be a breaking change for this backend, but we can do this if it covers all previous use cases and adds new ones.
Closing, as we don't have plans to implement this. Feel free to come back with your experiments, if you make any!
Thanks Dan, I'll post if so.
Currently only the first matching data type is returned, however it is possible that dropped content may contain data of multiple types. For example when dropping a draggable image from another page, the
url
andhtml
types may both be present.Is there scope to rework the plugin to return all matched data types, rather than just the first match?