PDA

View Full Version : [FIXED] [2.0] Bug in HtmlEditor



Webflash
10 Jul 2009, 12:47 PM
turn on Sourse Editor (html mode) and type text then call getValue() method in editor and editor will clear all typed data (need turn on design mode to save data)
public class BugGxt implements EntryPoint {
private FormPanel panel;
private HtmlEditor he;

public void onModuleLoad() {
panel = new FormPanel();
panel.setLabelAlign(LabelAlign.TOP);
panel.setFieldWidth(500);
he = new HtmlEditor();
panel.add(he);
panel.addButton(new Button("GetValue", new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
he.getValue();
}
}));

Viewport viewPort = new Viewport();
viewPort.setLayout(new FitLayout());
viewPort.add(panel);
RootPanel.get().add(viewPort);
}
}

sven
10 Jul 2009, 5:02 PM
Fixed in SVN.