1 /**
  2  * foreColor button.
  3  * @author yiminghe@gmail.com
  4  */
  5 KISSY.add("editor/plugin/foreColor/index", function (S, Editor, Button, cmd) {
  6 
  7     function ForeColorPlugin(config) {
  8         this.config = config || {};
  9     }
 10 
 11     S.augment(ForeColorPlugin, {
 12         renderUI:function (editor) {
 13             cmd.init(editor);
 14             editor.addButton("foreColor", {
 15                 cmdType:'foreColor',
 16                 tooltip:"文本颜色",
 17                 pluginConfig:this.config
 18             }, Button);
 19         }
 20     });
 21 
 22     return ForeColorPlugin;
 23 }, {
 24     requires:['editor', '../color/btn', './cmd']
 25 });