|
||||||||||
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 String |
FCKEDIT_PATH
The new .BasePath of the editor. |
static String |
PARAM_CSS
|
static String |
PARAM_CSS_DEFAULT
|
static String |
PARAM_CUSTOM_CONFIGURATION_PATH
This parameter defines the configuration script. |
static String |
PARAM_CUSTOM_CONFIGURATION_PATH_DEFAULT
|
static String |
PARAM_FONT_SIZES
|
static String |
PARAM_FONT_SIZES_DEFAULT
|
static String |
PARAM_FONTS
|
static String |
PARAM_FONTS_DEFAULT
|
static String |
PARAM_HEIGHT
|
static String |
PARAM_HEIGHT_DEFAULT
|
static String |
PARAM_IMAGES
|
static String |
PARAM_IMAGES_DEFAULT
|
static String |
PARAM_JS_INIT_FILE
This parameter defines the startup script. |
static String |
PARAM_JS_INIT_FILE_DEFAULT
Default values. |
static String |
PARAM_SOURCE
|
static String |
PARAM_SOURCE_DEFAULT
|
static String |
PARAM_STYLES
|
static String |
PARAM_STYLES_DEFAULT
|
static String |
PARAM_TABLES
|
static String |
PARAM_TABLES_DEFAULT
|
static String |
PARAM_TEMPLATES
|
static String |
PARAM_TEMPLATES_DEFAULT
|
static String |
PARAM_WIDTH
|
static 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 | |
---|---|
String |
convertToView(String value)
|
void |
drawHtml(Writer out)
Actually draw the dialog content. |
String |
escapeJsValue(String src)
Escapes the given String to make it javascript friendly. |
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 String FCKEDIT_PATH
public static final String PARAM_JS_INIT_FILE
public static final String PARAM_CUSTOM_CONFIGURATION_PATH
public static final String PARAM_CSS
public static final String PARAM_HEIGHT
public static final String PARAM_WIDTH
public static final String PARAM_TABLES
public static final String PARAM_IMAGES
public static final String PARAM_STYLES
public static final String PARAM_TEMPLATES
public static final String PARAM_FONTS
public static final String PARAM_FONT_SIZES
public static final String PARAM_SOURCE
public static final String PARAM_JS_INIT_FILE_DEFAULT
public static final String PARAM_CUSTOM_CONFIGURATION_PATH_DEFAULT
public static final String PARAM_CSS_DEFAULT
public static final String PARAM_HEIGHT_DEFAULT
public static final String PARAM_WIDTH_DEFAULT
public static final String PARAM_TABLES_DEFAULT
public static final String PARAM_IMAGES_DEFAULT
public static final String PARAM_STYLES_DEFAULT
public static final String PARAM_TEMPLATES_DEFAULT
public static final String PARAM_FONTS_DEFAULT
public static final String PARAM_FONT_SIZES_DEFAULT
public static final String PARAM_SOURCE_DEFAULT
Constructor Detail |
---|
public FckEditorDialog()
Method Detail |
---|
public 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(Writer out) throws IOException
DialogControl
drawHtml
in interface DialogControl
drawHtml
in class DialogControlImpl
out
- Writer
IOException
- exceptions thrown when writing to the Writer can be safely rethrown by the dialogDialogControl.drawHtml(Writer)
public String convertToView(String value)
value
-
public String escapeJsValue(String src)
src
-
StringEscapeUtils.escapeJavaScript(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |