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