private void processEditors(JsArray<JsEditor> editors) {
if (editors != null) {
for (int i = 0; i < editors.length(); i++) {
JsEditor jsEditor = editors.get(i);
Editor e = Editor.valueOf(jsEditor.getName());
if (e == null) {
throw new IllegalArgumentException(
"Unable to find editor name = '" + jsEditor.getName()
+ "'");
}
if (jsEditor.getFormat() != null) {
e.setAttribute("format", jsEditor.getFormat());
}
e.setStyleName(jsEditor.getStyleName());
}
}
}