public class InPlaceEditBehavior extends TinyMceBehavior
InPlaceEditComponent
instead of this
class directly.Constructor and Description |
---|
InPlaceEditBehavior(TinyMCESettings settings,
org.apache.wicket.Component triggerComponent,
WicketSavePlugin savePlugin)
Construct in-place-editing behavior to a component.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.wicket.markup.head.HeaderItem |
wrapTinyMceSettingsScript(String settingScript,
org.apache.wicket.Component component)
Wrap the initialization script for TinyMCE into a HeaderItem.
|
bind, getAddTinyMceSettingsScript, getComponent, isMarkupIdRequired, renderHead
public InPlaceEditBehavior(TinyMCESettings settings, org.apache.wicket.Component triggerComponent, WicketSavePlugin savePlugin)
settings
- inPlaceSaveBehavior
- settings
- TinyMceSettings for the editor when opened.triggerComponent
- Component that will get an onclick event to make the component
that this behavior is added to editable. Can be the editable
component itself, but can also be another component, e.g. a
button. If set to null, you will have to start the editable
state via a call to the javascriptfunction with name:
#getStartEditorScriptName()
savePlugin
- protected org.apache.wicket.markup.head.HeaderItem wrapTinyMceSettingsScript(String settingScript, org.apache.wicket.Component component)
TinyMceBehavior
wrapTinyMceSettingsScript
in class TinyMceBehavior
settingScript
- the actual initialization script for TinyMCEcomponent
- the target component that must be decorated with TinyMCECopyright © 2015. All rights reserved.