responseWriter.write(function);
responseWriter.write(");\n");
}
responseWriter.write("var " + editor.resolveWidgetVar() + " = new CKEditor('" + editor.getClientId() + "'");
if(config != null)
responseWriter.write(", " + config.toJson());
responseWriter.write(");\n");
if(editor.getSaveMethod() != null && editor.isAjax()) {
encodeSaveMethod(responseWriter, editor);
} else if(editor.isAjax()) {