|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WysiwygPolicyFilter
This class provides hooks for wysiwyg rendering.
Field Summary | |
---|---|
static String |
REVISION
|
Method Summary | |
---|---|
String |
afterRendering(String text,
Locale userLocale)
This method is called after wysiwyg rendering |
String |
beforeRendering(String text,
Locale userLocale)
This method is called before wysiwyg rendering |
void |
checkGlobalWysiwygCSS(Set globalStyle,
Workspace workspace)
This method is a hook called by Workspace to manage wysiwyg css global style to display. |
void |
checkLocalWysiwygCSS(Set localStyle,
String globalStyle,
Workspace workspace)
This method is a hook called by Workspace to manage wysiwyg css local style to display. |
void |
checkWysiwygCSSFile(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. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.jalios.jcms.plugin.PluginComponent |
---|
init |
Field Detail |
---|
static final String REVISION
Method Detail |
---|
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(Set cssFileSet)
cssFileSet
- the path of CSSFile to work withWorkspace.getGlobalWYSIWYGStyle()
void checkGlobalWysiwygCSS(Set globalStyle, Workspace workspace)
globalStyle
- Set of global styleworkspace
- the current WorkspaceWorkspace.getGlobalWYSIWYGStyle()
void checkLocalWysiwygCSS(Set localStyle, String globalStyle, Workspace workspace)
localStyle
- Set of local styleglobalStyle
- the chosen global styleworkspace
- the current WorkspaceWorkspace.getLocalWYSIWYGStyle(String)
String beforeRendering(String text, Locale userLocale)
text
- the text to be rendered.userLocale
- an optionnal Locale
of the user for which the text will be generated
String afterRendering(String text, Locale userLocale)
text
- the text after the rendering.userLocale
- an optionnal Locale
of the user for which the text will be generated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |