public interface WysiwygPolicyFilter extends PolicyFilter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
afterRendering(java.lang.String text,
java.util.Locale userLocale)
This method is called after wysiwyg rendering
|
java.lang.String |
beforeRendering(java.lang.String text,
java.util.Locale userLocale)
This method is called before wysiwyg rendering
|
void |
checkGlobalWysiwygCSS(java.util.Set globalStyle,
Workspace workspace)
This method is a hook called by Workspace to manage wysiwyg
css global style to display.
|
void |
checkLocalWysiwygCSS(java.util.Set localStyle,
java.lang.String globalStyle,
Workspace workspace)
This method is a hook called by Workspace to manage wysiwyg
css local style to display.
|
void |
checkWysiwygCSSFile(java.util.Set cssFileSet)
This method is a hook called by Workspace to manage wysiwyg css
files to parse and to display in wysiwyg css bar.
|
boolean |
loadWysiwygEditor(JcmsJspContext context,
boolean load)
This method is a hook called by
JcmsJspContext to fill the
JavaScript headers with the javascript files required to provide the
WYSIWYG editor. |
init
static final java.lang.String REVISION
boolean loadWysiwygEditor(JcmsJspContext context, boolean load)
JcmsJspContext
to fill the
JavaScript headers with the javascript files required to provide the
WYSIWYG editor.context
- the JcmsJspContext for which the check should be made.load
- the value computed by JCMS, true
if the
wysiwyg's javascript files need to be included,
false
otherwise.true
when the wysiwyg's javascript files are
to be included, false
otherwise. false
when the load argument was computed to true
as you
will prevent the editor to be loaded where it is needed by default.void checkWysiwygCSSFile(java.util.Set cssFileSet)
cssFileSet
- the path of CSSFile to work withWorkspace.getGlobalWYSIWYGStyle()
void checkGlobalWysiwygCSS(java.util.Set globalStyle, Workspace workspace)
globalStyle
- Set of global styleworkspace
- the current WorkspaceWorkspace.getGlobalWYSIWYGStyle()
void checkLocalWysiwygCSS(java.util.Set localStyle, java.lang.String globalStyle, Workspace workspace)
localStyle
- Set of local styleglobalStyle
- the chosen global styleworkspace
- the current WorkspaceWorkspace.getLocalWYSIWYGStyle(String)
java.lang.String beforeRendering(java.lang.String text, java.util.Locale userLocale)
text
- the text to be rendered.userLocale
- an optionnal Locale
of the user for which the text will be generatedjava.lang.String afterRendering(java.lang.String text, java.util.Locale userLocale)
text
- the text after the rendering.userLocale
- an optionnal Locale
of the user for which the text will be generatedCopyright © 2001-2010 Jalios SA. All Rights Reserved.