1 /** 2 * strikeThrough command 3 * @author yiminghe@gmail.com 4 */ 5 KISSY.add("editor/plugin/strikeThrough/cmd", function (S, Editor, Cmd) { 6 7 var STRIKE_STYLE = new Editor.Style({ 8 element:'del', 9 overrides:[ 10 { 11 element:'span', 12 attributes:{ 13 style:'text-decoration: line-through;' 14 } 15 }, 16 { 17 element:'s' 18 }, 19 { 20 element:'strike' 21 } 22 ] 23 }); 24 return { 25 init:function (editor) { 26 Cmd.addButtonCmd(editor, "strikeThrough", STRIKE_STYLE); 27 } 28 } 29 }, { 30 requires:['editor', '../font/cmd'] 31 });