|
|
@ -293,7 +293,13 @@ https://github.com/layerssss/paste.js
|
|
|
|
KindEditor.plugin('paste', function(K) {
|
|
|
|
KindEditor.plugin('paste', function(K) {
|
|
|
|
var editor = this,
|
|
|
|
var editor = this,
|
|
|
|
name = 'paste';
|
|
|
|
name = 'paste';
|
|
|
|
var contentWindow = document.getElementsByTagName('iframe')[0].contentWindow;
|
|
|
|
//这样貌似多编辑器就不会冲突了
|
|
|
|
|
|
|
|
if(editor.edit == undefined || editor.edit.iframe == undefined){
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var contentWindow = editor.edit.iframe[0].contentWindow;
|
|
|
|
|
|
|
|
//var contentWindow = editor.iframeDoc;
|
|
|
|
|
|
|
|
//var contentWindow = document.getElementsByTagName('iframe')[0].contentWindow;
|
|
|
|
var nodeBody = contentWindow.document.getElementsByTagName('body')[0];
|
|
|
|
var nodeBody = contentWindow.document.getElementsByTagName('body')[0];
|
|
|
|
console.log(nodeBody);
|
|
|
|
console.log(nodeBody);
|
|
|
|
$(nodeBody).pastableContenteditable();
|
|
|
|
$(nodeBody).pastableContenteditable();
|
|
|
|