public class TinyMceBehavior extends Behavior
| Constructor and Description |
|---|
TinyMceBehavior() |
TinyMceBehavior(TinyMCESettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Component component) |
protected String |
getAddTinyMceSettingsScript(TinyMCESettings.Mode mode,
Collection<Component> components) |
protected Component |
getComponent() |
protected ResourceReference |
getTinyMCEReference()
TinyMCE javascript resource.
|
protected boolean |
isMarkupIdRequired() |
void |
renderHead(Component component,
IHeaderResponse response) |
protected HeaderItem |
wrapTinyMceSettingsScript(String settingScript,
Component component)
Wrap the initialization script for TinyMCE into a HeaderItem.
|
afterRender, beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onConfigure, onEvent, onException, onRemove, onTag, unbindpublic TinyMceBehavior()
public TinyMceBehavior(TinyMCESettings settings)
public void renderHead(Component component, IHeaderResponse response)
renderHead in interface IComponentAwareHeaderContributorrenderHead in class Behaviorprotected HeaderItem wrapTinyMceSettingsScript(String settingScript, Component component)
settingScript - the actual initialization script for TinyMCEcomponent - the target component that must be decorated with TinyMCEprotected String getAddTinyMceSettingsScript(TinyMCESettings.Mode mode, Collection<Component> components)
protected boolean isMarkupIdRequired()
protected Component getComponent()
protected ResourceReference getTinyMCEReference()
TinyMCE javascript resource.
Note: The TinyMCE source cannot be lazily loaded via ajax. Therefore, adding
this in a IHeaderContributor.renderHead(IHeaderResponse) must be done in a component
that is not rendered via Ajax. If you wish to load this via Ajax, you can use the very hacky
workaround #lazyLoadTinyMCEResource(IHeaderResponse).
Copyright © 2004–2019. All rights reserved.