Method Summary |
|
native public void | addListener(HtmlEditorListener listener) Adds a HtmlEditor listener. |
native protected JavaScriptObject | create(JavaScriptObject jsObj) |
native public void | execCmd(String cmd, String value) Executes a Midas editor command directly on the editor document. |
protected JavaScriptObject | getConfigPrototype() |
public Toolbar | getToolbar() Returns the editor's toolbar. |
public String | getXType() |
native public void | insertAtCursor(String text) Inserts the passed text at the current cursor position. |
native public void | relayCmd(String cmd, String value) Executes a Midas editor command on the editor document and performs necessary focus and toolbar updates. |
public void | setCreateLinkText(String createLinkText) The default text for the create link prompt. |
public void | setDefaultLinkValue(String defaultLinkValue) The default value for the create link prompt (defaults to http:/ /). |
public void | setEnableAlignments(boolean enableAlignments) Enable the left, center, right alignment buttons (defaults to true). |
public void | setEnableColors(boolean enableColors) Enable the fore/highlight color buttons (defaults to true). |
public void | setEnableFont(boolean enableFont) Enable font selection. |
public void | setEnableFontSize(boolean enableFontSize) Enable the increase/decrease font size buttons (defaults to true). |
public void | setEnableLinks(boolean enableLinks) Enable the create link button. |
public void | setEnableLists(boolean enableLists) Enable the bullet and numbered list buttons. |
public void | setEnableSourceEdit(boolean enableSourceEdit) Enable the switch to source edit button. |
public void | setFontFamilies(String[] fontFamilies) An array of available font families. |
public void | setHeight(int height) Set the height of the HtmlEditor. |
native public void | toggleSourceEdit(boolean sourceEdit) Toggles the editor between standard and source edit mode. |