From 38f4ae90d2bd5ce883becfb1629b40a8003099b1 Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 28 Sep 2021 13:36:55 +0800 Subject: [PATCH] Roo/HtmlEditorCore.js roojs-debug.js --- Roo/HtmlEditorCore.js | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/Roo/HtmlEditorCore.js b/Roo/HtmlEditorCore.js index b0c6e1049b..97c9f84117 100644 --- a/Roo/HtmlEditorCore.js +++ b/Roo/HtmlEditorCore.js @@ -391,7 +391,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { if(this.owner.fireEvent('beforepush', this, v) !== false){ var d = (this.doc.body || this.doc.documentElement); d.innerHTML = v; - this.cleanUpPaste(); + //this.cleanUpPaste(); this.el.dom.value = d.innerHTML; this.owner.fireEvent('push', this, v); } @@ -697,9 +697,9 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { cmd = 'underline'; break; - case 'v': - this.cleanUpPaste.defer(100, this); - return; + //case 'v': + // this.cleanUpPaste.defer(100, this); + // return; } if(cmd){ @@ -735,16 +735,16 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { var target = r.parentElement(); if(!target || target.tagName.toLowerCase() != 'li'){ e.stopEvent(); - r.pasteHTML('
'); + r.pasteHTML('
'); r.collapse(false); r.select(); } } } - if (String.fromCharCode(k).toLowerCase() == 'v') { // paste - this.cleanUpPaste.defer(100, this); - return; - } + //if (String.fromCharCode(k).toLowerCase() == 'v') { // paste + // this.cleanUpPaste.defer(100, this); + // return; + //} }; @@ -757,10 +757,10 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { this.execCmd('InsertHTML','    '); this.deferFocus(); } - if (String.fromCharCode(k).toLowerCase() == 'v') { // paste - this.cleanUpPaste.defer(100, this); - return; - } + //if (String.fromCharCode(k).toLowerCase() == 'v') { // paste + // this.cleanUpPaste.defer(100, this); + // return; + //} }; }else if(Roo.isSafari){ @@ -773,10 +773,10 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { this.deferFocus(); return; } - if (String.fromCharCode(k).toLowerCase() == 'v') { // paste - this.cleanUpPaste.defer(100, this); - return; - } + //if (String.fromCharCode(k).toLowerCase() == 'v') { // paste + // this.cleanUpPaste.defer(100, this); + // return; + // } }; } @@ -997,7 +997,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { // fully contined. return 3; }, - +/* // private? - in a new class? cleanUpPaste : function() { @@ -1011,7 +1011,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { } }, - + */ cleanWordChars : function(input) {// change the chars to hex code var he = Roo.HtmlEditorCore; -- 2.39.2