Roo/form/HtmlEditor/ToolbarStandard.js
authoredward <edward@roojs.com>
Fri, 1 Apr 2016 03:52:25 +0000 (11:52 +0800)
committeredward <edward@roojs.com>
Fri, 1 Apr 2016 03:52:25 +0000 (11:52 +0800)
Roo/form/HtmlEditor/ToolbarStandard.js

index 243a5af..3fa01e2 100644 (file)
@@ -240,6 +240,7 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype,  {
                 btn('italic'),
                 btn('underline'),
                 btn('strikethrough')
+                        
             );
         };
         if(!this.disable.fontSize){
@@ -558,6 +559,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'));
@@ -683,6 +685,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.',