code: function initColorPicker() {
          var me = editor,
              cp = $G("colorPicker");
  
          /* 生成颜色选择器ui对象 */
          var popup = new UE.ui.Popup({
              content: new UE.ui.ColorPicker({
                  noColorText: me.getLang("clearColor"),
                  editor: me,
                  onpickcolor: function (t, color) {
                      updateFormState('colored', color);
                      updateBackground();
                      UE.ui.Popup.postHide();
                  },
                  onpicknocolor: function (t, color) {
                      updateFormState('colored', 'transparent');
                      updateBackground();
                      UE.ui.Popup.postHide();
                  }
              }),
              editor: me,
              onhide: function () {
              }
          });
  
          /* 设置颜色选择器 */
          domUtils.on(cp, "click", function () {
              popup.showAnchor(this);
          });
          domUtils.on(document, 'mousedown', function (evt) {
              var el = evt.target || evt.srcElement;
              UE.ui.Popup.postHide(el);
          });
          domUtils.on(window, 'scroll', function () {
              UE.ui.Popup.postHide();
          });
      }
docs: /* 初始化颜色选择器