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

index 085d124..ed69e18 100644 (file)
@@ -936,13 +936,13 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
     // private? - in a new class?
     cleanUpPaste :  function()
     {
-        // cleans up the whole document..
-        Roo.log('cleanuppaste');
-        
         if(!this.clearUp){
             return;
         }
         
+        // cleans up the whole document..
+        Roo.log('cleanuppaste');
+        
         this.cleanUpChildren(this.doc.body);
         var clean = this.cleanWordChars(this.doc.body.innerHTML);
         if (clean != this.doc.body.innerHTML) {