1 /**
  2  * removeFormat for selection.
  3  * @author yiminghe@gmail.com
  4  */
  5 KISSY.add("editor/plugin/removeFormat/index", function (S, Editor, formatCmd) {
  6 
  7     function removeFormat() {
  8     }
  9 
 10     S.augment(removeFormat, {
 11         renderUI:function (editor) {
 12             formatCmd.init(editor);
 13             editor.addButton("removeFormat", {
 14                 tooltip:"清除格式",
 15                 listeners:{
 16                     click:function () {
 17                         editor.execCommand("removeFormat");
 18                     }
 19 
 20                 },
 21                 mode:Editor.WYSIWYG_MODE
 22             });
 23         }
 24     });
 25 
 26     return removeFormat;
 27 }, {
 28     requires:['editor', './cmd', '../button/']
 29 });