public class WysiwygEditorConfig extends Object implements com.google.gwt.user.client.Window.ClosingHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SYNTAX
The default storage syntax.
|
static int |
SOURCE_TAB_INDEX
Source tab index in the TabPanel.
|
static int |
WYSIWYG_TAB_INDEX
WYWISYWG tab index in the TabPanel.
|
| Constructor and Description |
|---|
WysiwygEditorConfig(Config config)
Creates a new WYSIWYG editor configuration object based on the given configuration source.
|
| Modifier and Type | Method and Description |
|---|---|
Config |
getConfigurationSource() |
Element |
getHook() |
String |
getInputValue() |
int |
getSelectedTabIndex() |
String |
getSyntax() |
String |
getTemplateURL() |
boolean |
isDebugMode() |
boolean |
isInputConverted() |
boolean |
isTabbed() |
void |
onWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event) |
void |
setInputConverted(boolean inputConverted)
Sets whether the WYSIWYG editor needs to convert its input from source syntax to HTML.
|
void |
setSelectedTabIndex(int selectedTabIndex)
Caches the active text area.
|
public static final String DEFAULT_SYNTAX
public static final int WYSIWYG_TAB_INDEX
public static final int SOURCE_TAB_INDEX
public WysiwygEditorConfig(Config config)
config - the configuration sourcepublic String getSyntax()
public boolean isInputConverted()
true if the WYSIWYG editor input value is HTML (no conversion is required), false
otherwise (the input value is in source syntax and needs to be converted to HTML)public void setInputConverted(boolean inputConverted)
inputConverted - true if the WYSIWYG editor doesn't need to convert its input value because it's
HTML, false otherwise (the editor needs to convert the input value from source syntax to HTML)public Element getHook()
public String getInputValue()
public boolean isTabbed()
true if the WYSIWYG/Source tabs are displayed, false otherwisepublic int getSelectedTabIndex()
public void setSelectedTabIndex(int selectedTabIndex)
selectedTabIndex - the index of the selected tabpublic String getTemplateURL()
public boolean isDebugMode()
true if the WYSIWYG editor is in debug mode, false otherwisepublic Config getConfigurationSource()
public void onWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event)
onWindowClosing in interface com.google.gwt.user.client.Window.ClosingHandlerClosingHandler#onWindowClosing(ClosingEvent)Copyright © 2004–2014 XWiki. All rights reserved.