layerssss / paste.js

read image/text data from clipboard (cross-browser)
http://layerssss.github.io/paste.js/
MIT License
463 stars 94 forks source link

Firefox now supports paste event without an editor element #40

Open pkaminski opened 7 years ago

pkaminski commented 7 years ago

Looks like this bug was finally fixed: https://bugzilla.mozilla.org/show_bug.cgi?id=846674#c50

I don't know for sure, but perhaps this will let you get rid of the hidden editable hack for Firefox?

layerssss commented 7 years ago

@pkaminski I think this doesn't really helps with getting the image data. It seems to be handling the event for [contenteditable]. (from what I understand in the source diff). But I'll try to debug to confirm it later today. Thanks for following up on it :)