m_widgetService.setDefaultRenderer(renderer);
m_widgetService.addWidgetFactory("string", new I_WidgetFactory() {
public I_FormEditWidget createFormWidget(String configuration) {
return new FormWidgetWrapper(new StringWidget());
}
public I_EditWidget createInlineWidget(String configuration, Element element) {
return new StringWidget(element);
}
});
m_widgetService.addWidgetFactory("html", new I_WidgetFactory() {
public I_FormEditWidget createFormWidget(String configuration) {
return new FormWidgetWrapper(new TinyMCEWidget(null));
}
public I_EditWidget createInlineWidget(String configuration, Element element) {
return new TinyMCEWidget(element, null);