projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc35130
)
Roo/form/HtmlEditor/ToolbarStandard.js
author
Alan Knowles
<alan@roojs.com>
Wed, 20 Jan 2016 03:57:40 +0000
(11:57 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 20 Jan 2016 03:57:40 +0000
(11:57 +0800)
Roo/form/HtmlEditor/ToolbarStandard.js
patch
|
blob
|
history
diff --git
a/Roo/form/HtmlEditor/ToolbarStandard.js
b/Roo/form/HtmlEditor/ToolbarStandard.js
index
59de327
..
01d4ca4
100644
(file)
--- a/
Roo/form/HtmlEditor/ToolbarStandard.js
+++ b/
Roo/form/HtmlEditor/ToolbarStandard.js
@@
-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',