KineticJS How to listen to image drop from file explorer ? -
i'm using kineticjs v4.5.1
i'm looking way add image canvas system drag'n'drop.
i've tried add event listener container :
jquery('#container').on('drop',actions.dropimage); but event not fired, neither :
app.canvas = document.getelementbyid('container'); app.canvas.addeventlistener('drop',actions.dropimage); nota : theses codes sample working "regular" canvas, i'm trying here use kineticjs
nota 2 : i've seen issue : kineticjs drag , drop image dom canvas, want on drag n drop file explorer
am'i doing wrong ?
cheers
i found problem, missing prevent dragover event :
jquery('#wydiwyg').on('dragover',function(event){event.preventdefault();}); jquery('#wydiwyg').on('drop',actions.dropimage);
Comments
Post a Comment