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

IE11 No Longer Allowing Paste Of Images #58

Open GaryStimson opened 6 years ago

GaryStimson commented 6 years ago

Try copying an image to clipboard (do a google image search and copy an image to the clipboard), then using example page try and paste into the paste regions. Note that in Chrome it works perfectly, but in IE nothing happens. Also note that in last content editable example, the image flashes up for a second and then disappears. Gary

GaryStimson commented 6 years ago

Further information: Looks like pasteImage event is not fired at all in IE.

GaryStimson commented 6 years ago

Found issue was caused by IE inserting image after paste and hence timeout method in _checkImagesInContainer is used. However empty callback is provided so even through source is found and returned it does nothing. Fixed in fork: https://github.com/GaryStimson/paste.js/blob/master/paste.js

jhlee8804 commented 5 years ago

@GaryStimson Thanks to this report. I pushed your code :)

https://github.com/layerssss/paste.js/pull/67