public class TinyMCESettings extends Object implements Serializable
Plugin
,
Button
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
TinyMCESettings.Language
Language enum
|
static class |
TinyMCESettings.Mode
This class specifies how elements is to be converted into TinyMCE WYSIWYG editor instances.
|
static class |
TinyMCESettings.Theme
This class enables you to specify what theme to use when rendering the TinyMCE WYSIWYG editor
instances.
|
Modifier and Type | Field and Description |
---|---|
static org.apache.wicket.request.resource.ResourceReference |
TINYMCE_JS_REF |
static org.apache.wicket.request.resource.ResourceReference |
TINYMCE_JS_REF_MIN |
Constructor and Description |
---|
TinyMCESettings() |
TinyMCESettings(TinyMCESettings.Theme theme) |
TinyMCESettings(TinyMCESettings.Theme theme,
TinyMCESettings.Language lang) |
Modifier and Type | Method and Description |
---|---|
TinyMCESettings |
addCustomSetting(String customSetting) |
TinyMCESettings |
addPlugins(String pluginName) |
TinyMCESettings |
addToolbar(Toolbar toolbar) |
static void |
appendSingleConfigElement(StringBuffer buffer,
String name,
String value) |
static void |
appendSingleConfigElement(StringBuffer buffer,
String name,
String value,
boolean wrapValueWithQuotes) |
String |
getBlockFormats() |
org.apache.wicket.request.resource.ResourceReference |
getContentCss() |
Boolean |
getConvertUrls() |
String[] |
getCustomSettings() |
String |
getDocumentBaseUrl() |
Boolean |
getInLine() |
TinyMCESettings.Language |
getLanguage() |
Boolean |
getMenuBar() |
Boolean |
getRelativeUrls() |
Boolean |
getRemoveScriptHost() |
Boolean |
getResizing() |
TinyMCESettings.Theme |
getTheme() |
boolean |
isReadOnly() |
TinyMCESettings |
setBlockFormats(String blockFormats) |
TinyMCESettings |
setContentCss(org.apache.wicket.request.resource.ResourceReference contentCss) |
TinyMCESettings |
setConvertUrls(boolean convertUrls)
This option enables you to control if TinyMCE is to be clever and restore urls to their
original values.
|
TinyMCESettings |
setDocumentBaseUrl(String documentBaseUrl) |
TinyMCESettings |
setInLine(Boolean inLine) |
TinyMCESettings |
setMenuBar(Boolean menuBar) |
TinyMCESettings |
setReadOnly(boolean readOnly) |
TinyMCESettings |
setRelativeUrls(Boolean relativeUrls)
If this option is set to true, all URLs returned from the MCFileManager will be relative from
the specified document_base_url.
|
TinyMCESettings |
setRemoveScriptHost(Boolean removeScriptHost)
If this option is enabled the protocol and host part of the URLs returned from the
MCFileManager will be removed.
|
TinyMCESettings |
setResizing(Boolean resizing) |
String |
toJavaScript() |
String |
toJavaScript(TinyMCESettings.Mode mode,
Collection<org.apache.wicket.Component> components)
Generates the initialisation script.
|
public static final org.apache.wicket.request.resource.ResourceReference TINYMCE_JS_REF
public static final org.apache.wicket.request.resource.ResourceReference TINYMCE_JS_REF_MIN
public TinyMCESettings()
public TinyMCESettings(TinyMCESettings.Theme theme)
public TinyMCESettings(TinyMCESettings.Theme theme, TinyMCESettings.Language lang)
public TinyMCESettings.Theme getTheme()
public TinyMCESettings.Language getLanguage()
public String getDocumentBaseUrl()
public TinyMCESettings setDocumentBaseUrl(String documentBaseUrl)
public TinyMCESettings addCustomSetting(String customSetting)
public String[] getCustomSettings()
public org.apache.wicket.request.resource.ResourceReference getContentCss()
public TinyMCESettings setContentCss(org.apache.wicket.request.resource.ResourceReference contentCss)
public String getBlockFormats()
public TinyMCESettings setBlockFormats(String blockFormats)
public TinyMCESettings setReadOnly(boolean readOnly)
public boolean isReadOnly()
public TinyMCESettings setResizing(Boolean resizing)
public Boolean getResizing()
public TinyMCESettings setConvertUrls(boolean convertUrls)
convertUrls
- public Boolean getConvertUrls()
public TinyMCESettings setRemoveScriptHost(Boolean removeScriptHost)
removeScriptHost
- public Boolean getRemoveScriptHost()
public TinyMCESettings setRelativeUrls(Boolean relativeUrls)
relativeUrls
- public Boolean getRelativeUrls()
public final String toJavaScript(TinyMCESettings.Mode mode, Collection<org.apache.wicket.Component> components)
public String toJavaScript()
public TinyMCESettings addPlugins(String pluginName)
public TinyMCESettings addToolbar(Toolbar toolbar)
public Boolean getMenuBar()
public TinyMCESettings setMenuBar(Boolean menuBar)
public static void appendSingleConfigElement(StringBuffer buffer, String name, String value)
public static void appendSingleConfigElement(StringBuffer buffer, String name, String value, boolean wrapValueWithQuotes)
public Boolean getInLine()
public TinyMCESettings setInLine(Boolean inLine)
Copyright © 2015. All rights reserved.