|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.gui.dialog.DialogControlImpl info.magnolia.cms.gui.dialog.DialogBox info.magnolia.module.fckeditor.dialogs.FckEditorDialog
public class FckEditorDialog
A Magnolia dialog for the universal usage and configuration of the fckeditor. Credits for FCKEditor: http://ckeditor.com
The fckEditor is mainly configured in javascript files. Those files are configured with the following attributes.css | The css file to use. Default is /admindocroot/fckeditor/custom/css/magnoliaStandard.css | |
height | The height of the editor. | |
width | The width of the editor. | |
tables | The table editing features are available if true | |
lists | The list features are available if true | |
aligment | The aligment features are available if true | |
images | The image editing features including upload are available if true | |
fileUpload | The file upload features is enabled if true | |
styles | Defines the xml file defining the used styles. See http://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Styles for details | |
templates | Defines the xml file defining the used templates. See http://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Templates for details | |
fonts | A semicolon separated list of font names. | |
fontSizes | A semicolon separated list of font sizes | |
colors | A comma separated list of colors. hex values without #. | |
source | Show the source button | |
showSpellChecker | Show the spellchecker button | |
spellChecker | A spellchecker provider. | Possible values are:
More information about the FCK spell checker feature can be found here Configuration_Options/SpellChecker and here Configuration/Spell_Checker |
Nested Class Summary | |
---|---|
static class |
FckEditorDialog.SpellCheckerProviders
The spell checker providers supported by fckEditor. |
Field Summary | |
---|---|
static java.lang.String |
FCKEDIT_PATH
The new .BasePath of the editor. |
static java.lang.String |
PARAM_CSS
|
static java.lang.String |
PARAM_CSS_DEFAULT
|
static java.lang.String |
PARAM_CUSTOM_CONFIGURATION_PATH
This parameter defines the configuration script. |
static java.lang.String |
PARAM_CUSTOM_CONFIGURATION_PATH_DEFAULT
|
static java.lang.String |
PARAM_FONT_SIZES
|
static java.lang.String |
PARAM_FONT_SIZES_DEFAULT
|
static java.lang.String |
PARAM_FONTS
|
static java.lang.String |
PARAM_FONTS_DEFAULT
|
static java.lang.String |
PARAM_HEIGHT
|
static java.lang.String |
PARAM_HEIGHT_DEFAULT
|
static java.lang.String |
PARAM_IMAGES
|
static java.lang.String |
PARAM_IMAGES_DEFAULT
|
static java.lang.String |
PARAM_JS_INIT_FILE
This parameter defines the startup script. |
static java.lang.String |
PARAM_JS_INIT_FILE_DEFAULT
Default values. |
static java.lang.String |
PARAM_SOURCE
|
static java.lang.String |
PARAM_SOURCE_DEFAULT
|
static java.lang.String |
PARAM_STYLES
|
static java.lang.String |
PARAM_STYLES_DEFAULT
|
static java.lang.String |
PARAM_TABLES
|
static java.lang.String |
PARAM_TABLES_DEFAULT
|
static java.lang.String |
PARAM_TEMPLATES
|
static java.lang.String |
PARAM_TEMPLATES_DEFAULT
|
static java.lang.String |
PARAM_WIDTH
|
static java.lang.String |
PARAM_WIDTH_DEFAULT
|
Fields inherited from class info.magnolia.cms.gui.dialog.DialogBox |
---|
BOXTYPE_1COL, BOXTYPE_2COLS |
Fields inherited from class info.magnolia.cms.gui.dialog.DialogControlImpl |
---|
DEFAULT_VALUE_PROPERTY, SESSION_ATTRIBUTENAME_DIALOGOBJECT, SESSION_ATTRIBUTENAME_DIALOGOBJECT_REMOVE, VALIDATION_PATTERN_PROPERTY, value |
Constructor Summary | |
---|---|
FckEditorDialog()
Empty constructor should only be used by DialogFactory. |
Method Summary | |
---|---|
java.lang.String |
convertToView(java.lang.String value)
|
void |
drawHtml(java.io.Writer out)
Actually draw the dialog content. |
java.lang.String |
escapeJsValue(java.lang.String src)
Escapes the given String to make it javascript friendly. |
java.lang.String |
getVarName()
|
void |
init(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Content websiteNode,
Content configNode)
Initialize a Dialog. |
Methods inherited from class info.magnolia.cms.gui.dialog.DialogBox |
---|
drawHtmlPost, drawHtmlPre, getBoxType, getHtmlDescription, setBoxType |
Methods inherited from class info.magnolia.cms.gui.dialog.DialogControlImpl |
---|
addOption, addSub, clearWebsiteNode, drawHtmlPostSubs, drawHtmlPreSubs, drawSubs, getConfigValue, getConfigValue, getDescription, getId, getLabel, getMessage, getMessage, getMessages, getName, getOptions, getParent, getRequest, getResponse, getStorageNode, getSub, getSubs, getTopParent, getValidationPattern, getValue, getValues, getWebsiteNode, isRequired, readValue, readValues, removeSessionAttribute, setConfig, setConfig, setConfig, setDescription, setLabel, setName, setOptions, setRequired, setSaveInfo, setSessionAttribute, setTopParent, setValidationMessage, setValue, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FCKEDIT_PATH
public static final java.lang.String PARAM_JS_INIT_FILE
public static final java.lang.String PARAM_CUSTOM_CONFIGURATION_PATH
public static final java.lang.String PARAM_CSS
public static final java.lang.String PARAM_HEIGHT
public static final java.lang.String PARAM_WIDTH
public static final java.lang.String PARAM_TABLES
public static final java.lang.String PARAM_IMAGES
public static final java.lang.String PARAM_STYLES
public static final java.lang.String PARAM_TEMPLATES
public static final java.lang.String PARAM_FONTS
public static final java.lang.String PARAM_FONT_SIZES
public static final java.lang.String PARAM_SOURCE
public static final java.lang.String PARAM_JS_INIT_FILE_DEFAULT
public static final java.lang.String PARAM_CUSTOM_CONFIGURATION_PATH_DEFAULT
public static final java.lang.String PARAM_CSS_DEFAULT
public static final java.lang.String PARAM_HEIGHT_DEFAULT
public static final java.lang.String PARAM_WIDTH_DEFAULT
public static final java.lang.String PARAM_TABLES_DEFAULT
public static final java.lang.String PARAM_IMAGES_DEFAULT
public static final java.lang.String PARAM_STYLES_DEFAULT
public static final java.lang.String PARAM_TEMPLATES_DEFAULT
public static final java.lang.String PARAM_FONTS_DEFAULT
public static final java.lang.String PARAM_FONT_SIZES_DEFAULT
public static final java.lang.String PARAM_SOURCE_DEFAULT
Constructor Detail |
---|
public FckEditorDialog()
Method Detail |
---|
public java.lang.String getVarName()
public void init(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Content websiteNode, Content configNode) throws javax.jcr.RepositoryException
DialogControl
init
in interface DialogControl
init
in class DialogControlImpl
request
- current HttpServletRequestresponse
- current HttpServletResponsewebsiteNode
- current website nodeconfigNode
- configuration node for the dialog
javax.jcr.RepositoryException
DialogControl.init(HttpServletRequest, HttpServletResponse, Content, Content)
public void drawHtml(java.io.Writer out) throws java.io.IOException
DialogControl
drawHtml
in interface DialogControl
drawHtml
in class DialogControlImpl
out
- Writer
java.io.IOException
- exceptions thrown when writing to the Writer can be safely rethrown by the dialogDialogControl.drawHtml(Writer)
public java.lang.String convertToView(java.lang.String value)
value
-
public java.lang.String escapeJsValue(java.lang.String src)
src
-
StringEscapeUtils.escapeJavaScript(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |