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

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -