chenjuneking / quill-image-drop-and-paste

A quill editor module for drop and paste image, with a callback hook before insert image into the editor
ISC License
101 stars 42 forks source link

Only call preventDefault if a file is being dropped #43

Closed brianlukoff closed 1 year ago

brianlukoff commented 1 year ago

Right now, preventDefault is called on drop, whether or not what is being dropped is a file. However, this prevents the native behavior of allowing the user to drag and drop to move images around in the editor.

chenjuneking commented 1 year ago

Thank you so much for the good work! @brianlukoff

brianlukoff commented 1 year ago

No problem -- thanks for merging it!