From ceec57ca49dcbc30aa4d9ae6d3393c97d68e96fb Mon Sep 17 00:00:00 2001 From: jhlee8804 Date: Wed, 17 Apr 2019 11:33:00 +0900 Subject: [PATCH] Fixed the problem that cannot paste image in IE11 (#58) --- paste.coffee | 3 ++- paste.js | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) 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;