Roo/form/HtmlEditor/ToolbarStandard.js
authorAlan Knowles <alan@roojs.com>
Wed, 20 Jan 2016 03:57:51 +0000 (11:57 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Jan 2016 03:57:51 +0000 (11:57 +0800)
Roo/form/HtmlEditor/ToolbarStandard.js

index 01d4ca4..7af3f7a 100644 (file)
@@ -432,8 +432,8 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype,  {
                 handler: function(a,b) {
                     
                     var c = Roo.get(editorcore.doc.body);
-                    c.select('[style]').each(function(s) {
-                        s.dom.removeAttribute('style');
+                    c.select('[class]').each(function(s) {
+                        s.dom.className = '';
                     });
                     editorcore.syncValue();
                 },