diff --git a/public/assets/kindeditor/pasteimg.js b/public/assets/kindeditor/pasteimg.js index 767cefb09..f08a768aa 100644 --- a/public/assets/kindeditor/pasteimg.js +++ b/public/assets/kindeditor/pasteimg.js @@ -293,8 +293,8 @@ https://github.com/layerssss/paste.js }).call(this); -KindEditor.plugin('paste', function(K) { - var editor = this, +function enablePasteImg(_editor) { + var editor = _editor, name = 'paste'; if(editor.edit == undefined || editor.edit.iframe == undefined){ return; @@ -305,7 +305,7 @@ KindEditor.plugin('paste', function(K) { var nodeBody = contentWindow.document.getElementsByTagName('body')[0]; console.log(nodeBody); $(nodeBody).pastableContenteditable(); - + dataURItoBlob = function(dataURI) { // convert base64/URLEncoded data component to raw binary data held in a string var byteString; @@ -351,5 +351,4 @@ KindEditor.plugin('paste', function(K) { }); return; - -}); +};