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

index 59de327..01d4ca4 100644 (file)
@@ -425,6 +425,21 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype,  {
                 },
                 tabIndex:-1
             });
+            
+            cmenu.menu.items.push({
+                actiontype : 'all',
+                html: 'Remove All CSS Classes',
+                handler: function(a,b) {
+                    
+                    var c = Roo.get(editorcore.doc.body);
+                    c.select('[style]').each(function(s) {
+                        s.dom.removeAttribute('style');
+                    });
+                    editorcore.syncValue();
+                },
+                tabIndex:-1
+            });
+            
              cmenu.menu.items.push({
                 actiontype : 'tidy',
                 html: 'Tidy HTML Source',