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