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

Image paste doesn't work for pastableTextarea in firefox #11

Closed xdumaine closed 9 years ago

xdumaine commented 9 years ago

On the example page and in my app, I can paste an image into the pastableNonInputable and pastableContenteditable but not pastableTextarea only in firefox. Pasting image in pastableTextarea works in Chrome

layerssss commented 9 years ago

Thanks for submitting the issue, I'll look into the problem today

jmuheim commented 9 years ago

Does work for me on both OSX 10.10 / Windows 7 and FF 38.0.5 Did you succeed in the meantime?

layerssss commented 9 years ago

works for me too, (osx/ FF 38). The current hack for firefox consist of brutal key detection, listens to the keydown/keyup events, checks the keyCode and ctlDown status, so it should be fragile in possible edge cases. So it would really help if someone finds the edge cases and report the environment (if possible keymap? anyway I am using dvorak keymap and experienced no problems).

jmuheim commented 9 years ago

That's good to hear. Anyway, it would be nice to sort this out. I'm using QWERTY.

layerssss commented 9 years ago

@jmuheim so we both can not reproduce this problem, right? if so let's close this issue to see later if anyone come up with a new one.