diff --git a/paste.coffee b/paste.coffee index faae1a4..39690f6 100644 --- a/paste.coffee +++ b/paste.coffee @@ -218,7 +218,8 @@ class Paste else for file in clipboardData.files @_handleImage URL.createObjectURL(file), @originalEvent - @_checkImagesInContainer (src)-> + @_checkImagesInContainer (src)=> + @_handleImage src, @originalEvent null _handleImage: (src, e, name)-> diff --git a/paste.js b/paste.js index 21724b4..ba1eaf9 100644 --- a/paste.js +++ b/paste.js @@ -356,7 +356,9 @@ https://github.com/layerssss/paste.js file = ref4[l]; _this._handleImage(URL.createObjectURL(file), _this.originalEvent); } - _this._checkImagesInContainer(function(src) {}); + _this._checkImagesInContainer(function(src) { + return _this._handleImage(src, _this.originalEvent); + }); } } return null;