|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.wysiwyg.client.WysiwygEditorApi
public class WysiwygEditorApi
This class exposes a WysiwygEditor to the native JavaScript code.
| Field Summary | |
|---|---|
static Command |
SUBMIT
The command used to submit the value of the rich text area. |
| Constructor Summary | |
|---|---|
WysiwygEditorApi(JavaScriptObject jsConfig)
Creates a new WysiwygEditor based on the given configuration object. |
|
| Method Summary | |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addActionHandler(java.lang.String actionName,
JavaScriptObject jsHandler)
Creates an action handler that wraps the given JavaScript function and registers it for the specified action. |
CommandManagerApi |
getCommandManagerApi()
|
java.lang.String |
getParameter(java.lang.String name)
|
com.google.gwt.core.client.JsArrayString |
getParameterNames()
|
com.google.gwt.user.client.Element |
getPlainTextArea()
|
com.google.gwt.user.client.Element |
getRichTextArea()
|
void |
getSourceText(JavaScriptObject onSuccess,
JavaScriptObject onFailure)
Sends a request to the server to convert the HTML output of the rich text editor to source text and calls one of the given functions when the response is received. |
static boolean |
isRichTextEditingSupported()
|
static void |
publish()
Publishes the JavaScript API that can be used to create and control WysiwygEditors. |
void |
release()
Releases the editor so that it can be garbage collected before the page is unloaded. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Command SUBMIT
| Constructor Detail |
|---|
public WysiwygEditorApi(JavaScriptObject jsConfig)
WysiwygEditor based on the given configuration object.
jsConfig - the JavaScriptObject used to configure the newly created editor| Method Detail |
|---|
public static boolean isRichTextEditingSupported()
true if the current browser supports rich text editing, false otherwisepublic void release()
public com.google.gwt.user.client.Element getPlainTextArea()
public com.google.gwt.user.client.Element getRichTextArea()
public void getSourceText(JavaScriptObject onSuccess,
JavaScriptObject onFailure)
onSuccess - the JavaScript function to call on successonFailure - the JavaScript function to call on failurepublic CommandManagerApi getCommandManagerApi()
public com.google.gwt.event.shared.HandlerRegistration addActionHandler(java.lang.String actionName,
JavaScriptObject jsHandler)
actionName - the name of the action to listen tojsHandler - the JavaScript function to be called when the specified action occurs
public java.lang.String getParameter(java.lang.String name)
name - the name of a configuration parameter
public com.google.gwt.core.client.JsArrayString getParameterNames()
public static void publish()
WysiwygEditors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||