public class WysiwygEditor extends RichTextEditorController
DEFAULT_PLUGINS, DEFAULT_ROOT_UI_EXTENSIONS| Constructor and Description |
|---|
WysiwygEditor(Config config,
SyntaxValidatorManager svm,
PluginFactoryManager pfm)
Creates a new WYSIWYG editor.
|
WysiwygEditor(WysiwygEditorConfig config,
SyntaxValidatorManager svm,
PluginFactoryManager pfm)
Creates a new WYSIWYG editor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys this editor, unregistering all the listeners and releasing the used memory.
|
WysiwygEditorConfig |
getConfig() |
PlainTextEditor |
getPlainTextEditor()
Get the plain text editor.
|
int |
getSelectedTab() |
com.google.gwt.user.client.ui.Widget |
getUI()
In a Model-View-Controller architecture the UI represents the View component, while this class represents the
Controller.
|
protected void |
maybeInitializeRichTextEditor()
Initializes the rich text editor if it wasn't already initialized.
|
void |
onLoad(com.google.gwt.event.dom.client.LoadEvent event) |
void |
setSelectedTab(int index)
Sets the selected tab.
|
canUpdate, extendRootUI, getConfigurationSource, getRichTextEditor, loadPlugins, maybeInitialize, onBeforeCommand, onCommand, onKeyUp, onMouseUp, saveRegistration, updatepublic WysiwygEditor(Config config, SyntaxValidatorManager svm, PluginFactoryManager pfm)
config - the configuration sourcesvm - the syntax validation manager used for enabling or disabling plugin featurespfm - the plugin factory manager used to instantiate pluginspublic WysiwygEditor(WysiwygEditorConfig config, SyntaxValidatorManager svm, PluginFactoryManager pfm)
config - the configuration objectsvm - the syntax validation manager used for enabling or disabling plugin featurespfm - the plugin factory manager used to instantiate pluginspublic void onLoad(com.google.gwt.event.dom.client.LoadEvent event)
onLoad in interface com.google.gwt.event.dom.client.LoadHandleronLoad in class RichTextEditorControllerprotected void maybeInitializeRichTextEditor()
public com.google.gwt.user.client.ui.Widget getUI()
public PlainTextEditor getPlainTextEditor()
null if it does not existpublic int getSelectedTab()
public void setSelectedTab(int index)
index - the tab indexpublic WysiwygEditorConfig getConfig()
public void destroy()
RichTextEditorControllerdestroy in class RichTextEditorControllerCopyright © 2004–2017 XWiki. All rights reserved.