Package com.gc.gwt.wysiwyg.client.defaults

Examples of com.gc.gwt.wysiwyg.client.defaults.EditorCommand


    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.doCreateLink(editor.getEditorWYSIWYG().getFrame().getElement(), params[0]);
      }
    }, "Create Link", "Link URL: ", "Create Link").show(editor);
View Full Code Here


    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);
View Full Code Here

TOP

Related Classes of com.gc.gwt.wysiwyg.client.defaults.EditorCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.