From ec316e580f7ac4e588b8c9a9bb9a3ef144a5847a Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Fri, 16 Oct 2015 10:07:10 +0800 Subject: [PATCH] =?UTF-8?q?ke=E5=A4=8D=E5=88=B6=E8=B4=B4=E5=9B=BEurl?= =?UTF-8?q?=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/kindeditor/pasteimg.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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; - -}); +};