this.editor = editor;
this.addClickHandler(this);
}
public void onClick(ClickEvent event) {
new SimpleOneFieldPromptBox(editor, new EditorCommand() {
public void exec(String[] params) {
EditorUtils.saveSelection(editor.getEditorWYSIWYG().getFrame().getElement());
EditorUtils.doInsertImage(editor.getEditorWYSIWYG().getFrame().getElement(), params[0]);
}
}, "Insert Image", "Image URL: ", "Insert Image").show(editor);