PDA

View Full Version : HtmlEditor Events when smth Changed?



Adam_Germany
6 May 2010, 5:30 AM
Hello ,
I need a help! how can i call BeforeSync or Sync Event to know that the text was changed, when I write smth in the editor?




@Override
protected void onRender(Element parent, int pos) {
super.onRender(parent, pos);
this.setSize(500, 400);
this.setLayout(new FitLayout());
this.setHeading("Html Editor");

HtmlEditor htmlEditor = new HtmlEditor();
htmlEditor.setValue("Hallo");

htmlEditor.addListener( ?????.Sync , new Listener<HtmlEditorEvent>() {

@Override
public void handleEvent(HtmlEditorEvent be) {
MessageBox.alert("Changes", "smth has changed", null);
}
});


this.add(htmlEditor);
}


thx.

sven
6 May 2010, 6:46 AM
At the moment the html editor does not fire a change evnt.

Adam_Germany
25 May 2010, 12:12 AM
Hi,
is there any way to detect if the htmlEditor Text was chaned?

thx.