Roo/HtmlEditorCore.js
authorEdward <edward@roojs.com>
Tue, 8 Jul 2014 05:52:57 +0000 (13:52 +0800)
committerEdward <edward@roojs.com>
Tue, 8 Jul 2014 05:52:57 +0000 (13:52 +0800)
Roo/HtmlEditorCore.js

index 9fa8eae..6ab173c 100644 (file)
@@ -117,7 +117,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
     iframePad:3,
     hideMode:'offsets',
     
-    cleanUpPaste: true,
+    clearUp: true,
     
      
     
@@ -937,7 +937,12 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
     cleanUpPaste :  function()
     {
         // cleans up the whole document..
-         Roo.log('cleanuppaste');
+        Roo.log('cleanuppaste');
+        
+        if(!this.clearUp){
+            return;
+        }
+        
         this.cleanUpChildren(this.doc.body);
         var clean = this.cleanWordChars(this.doc.body.innerHTML);
         if (clean != this.doc.body.innerHTML) {