Roo/form/HtmlEditor.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 20 May 2011 06:15:38 +0000 (14:15 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 20 May 2011 06:15:38 +0000 (14:15 +0800)
Roo/form/HtmlEditor.js

index c178596..55a3851 100644 (file)
@@ -345,6 +345,7 @@ Roo.form.HtmlEditor = Roo.extend(Roo.form.Field, {
     syncValue : function(){
         if(this.initialized){
             var bd = (this.doc.body || this.doc.documentElement);
+            this.cleanUpPaste();
             var html = bd.innerHTML;
             if(Roo.isSafari){
                 var bs = bd.getAttribute('style'); // Safari puts text-align styles on the body element!
@@ -867,7 +868,7 @@ Roo.form.HtmlEditor = Roo.extend(Roo.form.Field, {
     {
         // cleans up the whole document..
       //  console.log('cleanuppaste');
-        this.cleanUpChildren(this.doc.body)
+        this.cleanUpChildren(this.doc.body);
         
         
     },