|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.contrib.tinymce4.settings.TinyMCESettings
public class TinyMCESettings
Settings class for TinyMCE editor. User can add/remove buttons, enable/disable resizing, change positions, orientation, alignment and much more.
Plugin,
Button,
Serialized Form| Nested Class Summary | |
|---|---|
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. |
| Field Summary | |
|---|---|
static org.apache.wicket.request.resource.ResourceReference |
TINYMCE_JS_REF
|
static org.apache.wicket.request.resource.ResourceReference |
TINYMCE_JS_REF_MIN
|
| Constructor Summary | |
|---|---|
TinyMCESettings()
|
|
TinyMCESettings(TinyMCESettings.Theme theme)
|
|
TinyMCESettings(TinyMCESettings.Theme theme,
TinyMCESettings.Language lang)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public TinyMCESettings()
public TinyMCESettings(TinyMCESettings.Theme theme)
public TinyMCESettings(TinyMCESettings.Theme theme,
TinyMCESettings.Language lang)
| Method Detail |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||