public class CKEditorTextArea extends org.apache.wicket.markup.html.form.TextArea<String>
| Modifier and Type | Class and Description |
|---|---|
static class |
CKEditorTextArea.CKEditorAjaxSubmitModifier
Behavior for updating all editors from page.
|
org.apache.wicket.markup.html.form.AbstractTextComponent.ITextFormatProvider| Modifier and Type | Field and Description |
|---|---|
static String |
ACTIVE_KEYSTROKES
Used to configure active keystrokes.
|
static String |
ACTIVE_KEYSTROKES_VALUES
Used to configure active keystrokes.
|
static String |
BASIC_ENTITIES
CKEDITOR basic entities - key.
|
static String |
BLOCKED_KEYSTROKES
Used to configure lockedKeystrokes.
|
static String |
BLOCKED_KEYSTROKES_VALUES
Used to configure lockedKeystrokes.
|
static String |
CKEDITOR_ENTER_BR
CKEDITOR CKEDITOR_ENTER_BR - key.
|
static String |
CONFIG_ALIGN
CKEDITOR align - key.
|
static String |
CONFIG_HEIGHT
CKEDITOR height - key.
|
static String |
CONFIG_TOOLBAR
CKEDITOR toolbar - key.
|
static String |
CONFIG_WIDTH
CKEDITOR width - key.
|
static String |
DECORATOR_FUNCTION_UPDATE_ALL
Decorator to update all.
|
static String |
ELEMENTS_PATH
CKEDITOR elementspath plugin - key.
|
static String |
ENTER_MODE
CKEDITOR enterMode - key.
|
static String |
ENTITIES
CKEDITOR entities - key.
|
static String |
EXTRA_PLUGINS
CKEDITOR extraPlugins - key.
|
static String |
HTML_ENCODE_OUTPUT
CKEDITOR htmlEncodeOutput - key.
|
static String |
LANGUAGE_CONFIG
Used to configure language.
|
static String |
REMOVE_FORMAT_TAGS
CKEDITOR removeFormatTags - key.
|
static String |
REMOVE_PLUGINS
CKEDITOR removePlugins - key.
|
static String |
RESIZE_ENABLED
CKEDITOR resize_enabled - key.
|
static String |
SHIFT_ENTER_MODE
CKEDITOR shiftEnterMode - key.
|
static String |
SKIN
CKEDITOR skin - key.
|
static String |
SKIN_V2
CKEDITOR skin - key.
|
static String |
TOOLBAR_FULL
CKEDITOR full toolbar - key.
|
| Constructor and Description |
|---|
CKEditorTextArea(String id)
Basic constructor.
|
CKEditorTextArea(String id,
boolean shouldCkInstanceRemoveInstance)
Basic constructor.
|
CKEditorTextArea(String id,
org.apache.wicket.model.IModel<String> model)
Basic constructor.
|
CKEditorTextArea(String id,
org.apache.wicket.model.IModel<String> model,
boolean shouldCkInstanceRemoveInstance)
Basic constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
createDestroyMethod() |
org.apache.wicket.ajax.calldecorator.AjaxCallDecorator |
getAjaxCallDecoratedToUpdateElement()
Gets the ajax decorator that can be used to update the current element.
|
static org.apache.wicket.ajax.calldecorator.AjaxCallDecorator |
getAjaxCallDecoratedToUpdateElementForAllEditorsOnPage()
Gets the ajax decorator that can be used to update the all ckeditors on page.
|
String |
getInputName() |
protected void |
onRemove() |
void |
setCallbackFunction(String callbackFunctionParam)
Sets the callback function for the CKEDITOR.
|
void |
setEditorConfig(Map<String,String> config)
Sets custom config for the CKEDITOR.
|
convertInput, convertValue, getConvertEmptyInputStringToNull, isInputNullable, onBeforeRender, setConvertEmptyInputStringToNull, supportsPersistenceadd, add, checkRequired, clearInput, error, getConvertedInput, getDefaultLabel, getDefaultLabel, getForm, getInput, getInputAsArray, getModel, getModelObject, getModelValue, getRawInput, getType, getValidatorKeyPrefix, getValidators, getValue, hasRawInput, inputAsInt, inputAsInt, inputAsIntArray, inputChanged, internalOnModelChanged, invalid, isMultiPart, isPersistent, isRequired, isValid, newValidatable, onComponentTag, onDetach, onDisabled, onInvalid, onValid, processChildren, processInput, setConvertedInput, setLabel, setModel, setModelObject, setModelValue, setModelValue, setPersistent, setRequired, setType, shouldTrimInput, trim, updateModel, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrdergetLabel, setLabelInternalgetMarkupType, getWebPage, getWebRequestadd, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onAfterRenderChildren, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachBehaviors, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getComponentBorder, getConverter, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAfterRender, onAttach, onBeginRequest, onConfigure, onEndRequest, onInitialize, onModelChanged, onModelChanging, prepareForRender, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setComponentBorder, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrappublic static final String DECORATOR_FUNCTION_UPDATE_ALL
public static final String CONFIG_HEIGHT
public static final String CONFIG_WIDTH
public static final String CONFIG_TOOLBAR
public static final String TOOLBAR_FULL
public static final String CONFIG_ALIGN
public static final String HTML_ENCODE_OUTPUT
public static final String ENTITIES
public static final String BASIC_ENTITIES
public static final String SKIN
public static final String SKIN_V2
public static final String EXTRA_PLUGINS
public static final String REMOVE_PLUGINS
public static final String ELEMENTS_PATH
public static final String RESIZE_ENABLED
public static final String REMOVE_FORMAT_TAGS
public static final String SHIFT_ENTER_MODE
public static final String ENTER_MODE
public static final String CKEDITOR_ENTER_BR
public static final String LANGUAGE_CONFIG
public static final String BLOCKED_KEYSTROKES
public static final String BLOCKED_KEYSTROKES_VALUES
public static final String ACTIVE_KEYSTROKES
public static final String ACTIVE_KEYSTROKES_VALUES
public CKEditorTextArea(String id)
id - component id.public CKEditorTextArea(String id, boolean shouldCkInstanceRemoveInstance)
id - component id.shouldCkInstanceRemoveInstance - If the ck instance should be removed when destroying wicket component. Normally should always be true,
but we saw that calling a js in onRemove function causes some loading problems in wicket. We saw that
this is working if the editor is used in repeaters but not if the editor is used in a normal way. That
is why default is false.public CKEditorTextArea(String id, org.apache.wicket.model.IModel<String> model, boolean shouldCkInstanceRemoveInstance)
id - the wicket component id.model - the wicket component model.shouldCkInstanceRemoveInstance - If the ck instance should be removed when destroying wicket component. Normally should always be true,
but we saw that calling a js in onRemove function causes some loading problems in wicket. We saw that
this is working if the editor is used in repeaters but not if the editor is used in a normal way. That
is why default is false.public CKEditorTextArea(String id, org.apache.wicket.model.IModel<String> model)
id - the wicket component id.model - the wicket component model.protected void onRemove()
onRemove in class org.apache.wicket.Componentprotected String createDestroyMethod()
public String getInputName()
getInputName in class org.apache.wicket.markup.html.form.FormComponent<String>public void setEditorConfig(Map<String,String> config)
config - the config map.public void setCallbackFunction(String callbackFunctionParam)
callbackFunctionParam - the callbackFunction to setpublic static final org.apache.wicket.ajax.calldecorator.AjaxCallDecorator getAjaxCallDecoratedToUpdateElementForAllEditorsOnPage()
public org.apache.wicket.ajax.calldecorator.AjaxCallDecorator getAjaxCallDecoratedToUpdateElement()
Copyright © 2008-2015 The Sakai Foundation. All Rights Reserved.