public void populate(FormItemRepresentation rep) throws FormBuilderException {
if (!(rep instanceof RichTextEditorRepresentation)) {
throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "RichTextEditorRepresentation"));
}
super.populate(rep);
RichTextEditorRepresentation rrep = (RichTextEditorRepresentation) rep;
this.html = rrep.getHtml();
if (rrep.getWidth() != null && !"".equals(rrep.getWidth())) {
setWidth(rrep.getWidth());
}
if (rrep.getHeight() != null && !"".equals(rrep.getHeight())) {
setHeight(rrep.getHeight());
}
populate(this.editor);
}