X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2Fform%2FHtmlEditor%2FToolbarStandard.js;h=0c0f7d43b480b525c985262bae153c1cf6f3de50;hb=e40a4b7c6df9ce98225fca8380f39ca59bba8f50;hp=59de327ff39b90de8b665aec8c931b514469f32c;hpb=2f0186874e5615c3cf4009a3f500c976eff7272a;p=roojs1 diff --git a/Roo/form/HtmlEditor/ToolbarStandard.js b/Roo/form/HtmlEditor/ToolbarStandard.js index 59de327ff3..0c0f7d43b4 100644 --- a/Roo/form/HtmlEditor/ToolbarStandard.js +++ b/Roo/form/HtmlEditor/ToolbarStandard.js @@ -238,7 +238,8 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype, { tb.add( btn('bold'), btn('italic'), - btn('underline') + btn('underline'), + btn('strikethrough') ); }; if(!this.disable.fontSize){ @@ -425,6 +426,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('[class]').each(function(s) { + s.dom.removeAttribute('class'); + }); + editorcore.syncValue(); + }, + tabIndex:-1 + }); + cmenu.menu.items.push({ actiontype : 'tidy', html: 'Tidy HTML Source', @@ -542,6 +558,7 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype, { btns[frameId + '-bold'].toggle(doc.queryCommandState('bold')); btns[frameId + '-italic'].toggle(doc.queryCommandState('italic')); btns[frameId + '-underline'].toggle(doc.queryCommandState('underline')); + btns[frameId + '-strikethrough'].toggle(doc.queryCommandState('strikethrough')); } if(!this.disable.alignments){ btns[frameId + '-justifyleft'].toggle(doc.queryCommandState('justifyleft')); @@ -667,6 +684,11 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype, { text: 'Underline the selected text.', cls: 'x-html-editor-tip' }, + strikethrough : { + title: 'Strikethrough', + text: 'Strikethrough the selected text.', + cls: 'x-html-editor-tip' + }, increasefontsize : { title: 'Grow Text', text: 'Increase the font size.',