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 45.3.0的contentEditable(输入)框中仅能保持一张图片 #31

Closed jaiiye closed 8 years ago

jaiiye commented 8 years ago

一块文本域中使用paste.js处理粘贴上传,然后将图片插入文本域,但在firefox中会把框中所有前面插入的图片清掉,看源码应该是方法_checkImagesInContainer将图片删掉了,如下: image

layerssss commented 8 years ago

Good catch! It's fixed now! ✨