Roo/HtmlEditorCore.js
authorEdward <edward@roojs.com>
Tue, 8 Jul 2014 06:59:11 +0000 (14:59 +0800)
committerEdward <edward@roojs.com>
Tue, 8 Jul 2014 06:59:11 +0000 (14:59 +0800)
Roo/HtmlEditorCore.js

index 35db5b3..12f795d 100644 (file)
@@ -936,6 +936,9 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
     // private? - in a new class?
     cleanUpPaste :  function()
     {
+        if(!this.clearUp){
+            return;
+        }
         // cleans up the whole document..
         Roo.log('cleanuppaste');
         
@@ -977,8 +980,6 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
     cleanUpChild : function (node)
     {
         var ed = this;
-        Roo.log('clear up child!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
-        Roo.log(node.nodeName);
         //console.log(node);
         if (node.nodeName == "#text") {
             // clean up silly Windows -- stuff?