Roo/HtmlEditorCore.js
authorAlan Knowles <alan@roojs.com>
Thu, 26 Sep 2019 02:19:16 +0000 (10:19 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 26 Sep 2019 02:19:16 +0000 (10:19 +0800)
Roo/HtmlEditorCore.js

index 733d91f..c99e460 100644 (file)
@@ -1165,11 +1165,11 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
             
             if (a.name == 'class') {
                 if (a.value.match(/^Mso/)) {
-                    node.className = '';
+                    node.removeAttribute('class');
                 }
                 
                 if (a.value.match(/^body$/)) {
-                    node.className = '';
+                    node.removeAttribute('class');
                 }
                 continue;
             }