1 /**
  2  * Add indent button.
  3  * @author yiminghe@gmail.com
  4  */
  5 KISSY.add("editor/plugin/indent/index", function (S, Editor, indexCmd) {
  6 
  7     function Indent() {
  8 
  9     }
 10 
 11     S.augment(Indent, {
 12         renderUI:function (editor) {
 13             indexCmd.init(editor);
 14             editor.addButton("indent", {
 15                 tooltip:"增加缩进量 ",
 16                 listeners:{
 17                     click:function () {
 18                         editor.execCommand("indent");
 19                         editor.focus();
 20                     }
 21                 },
 22                 mode:Editor.WYSIWYG_MODE
 23             });
 24         }
 25     });
 26 
 27     return Indent;
 28 
 29 }, {
 30     requires:['editor', './cmd']
 31 });