code: public static void initClass() {
  
          // registers a factory for creating new instances of this widget
          CmsWidgetFactoryRegistry.instance().registerFactory(WIDGET_TYPE, new I_CmsFormWidgetFactory() {
  
              /**
               * @see org.opencms.gwt.client.ui.input.form.I_CmsFormWidgetFactory#createWidget(java.util.Map, com.google.common.base.Optional)
               */
              public I_CmsFormWidget createWidget(Map<String, String> widgetParams, Optional<String> defaultValue) {
  
                  String cfg = widgetParams.get("v");
                  if (CmsStringUtil.isEmptyOrWhitespaceOnly(cfg)) {
                      // something went wrong, fall back to text box
                      return new CmsTextBox();
                  } else {
                      return new CmsTinyMCEWidget(decode(cfg));
                  }
              }
  
              private String decode(String string) {
  
                  StringBuffer result = new StringBuffer();
                  for (String num : string.split(",")) {
                      result.append((char)(Integer.parseInt(num)));
                  }
                  return result.toString();
              }
          });
      }
docs: Initializes this class.<p>