I'm currently using the library Draggabilly to add drag and drop functionality to my application. What I'm trying to do, is trigger the drop
event (the HTML5 native one) on an instance of the CKEditor and then perform a task. Here's what I've figured out so far:
- The CKEditor will only listen to native HTML5 events like
dragover
anddrop
. - Dragabilly does not trigger the native
drag
anddrop
events. Instead it usesmousedown
andmouseup
.
My question is, is there a way to use dispatchEvent
or some similar method to simulate the dragstart
, drag
and drop
events?
If there's a better solution to this problem other than the one I've mentioned, please let me know.
Thanks.