From ddaff9e56a0cb9c4a942dfc17f6924a5e1f94d38 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 25 Jul 2014 13:31:44 +0800 Subject: [PATCH] Roo/form/HtmlEditor/ToolbarStandard.js --- Roo/form/HtmlEditor/ToolbarStandard.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Roo/form/HtmlEditor/ToolbarStandard.js b/Roo/form/HtmlEditor/ToolbarStandard.js index 7d0841841f..4f70fb530a 100644 --- a/Roo/form/HtmlEditor/ToolbarStandard.js +++ b/Roo/form/HtmlEditor/ToolbarStandard.js @@ -394,7 +394,19 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype, { tabIndex:-1 }); } - + cmenu.menu.items.push({ + actiontype : 'all', + html: 'Remove All Styles', + handler: function(a,b) { + + var c = Roo.get(editorcore.doc.body); + c.select('[style]').each(function(s) { + s.dom.removeAttribute('style'); + }); + + }, + tabIndex:-1 + }); tb.add(cmenu); } -- 2.39.2