Class CmsEditorContext
java.lang.Object
org.opencms.ade.contenteditor.client.CmsEditorContext
This class can be used by code which uses the Acacia editor to pass additional information to the editor on startup.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the path of the style sheet to use for the WYSIWYG editor.Returns the HTML context info.Gets the additional publish parameters which should be used for the publish functionality in the Acacia editor.Returns the setting presets.boolean
Returns true if the edited element is reused.void
setEditorStylesheet
(String stylesheetPath) Sets the path of the style sheet to use for the WYSIWYG editor.void
setHtmlContextInfo
(String htmlContextInfo) Sets the HTML context info.void
setPublishParameters
(Map<String, String> publishParams) Sets the additional publish parameters for the publish functionality in the Acacia editor.void
setReusedElement
(boolean reusedElement) Sets the 'reused' status for the currently edited element.void
setSettingPresets
(Map<String, String> settingPresets) Sets the setting presets.
-
Constructor Details
-
CmsEditorContext
public CmsEditorContext()Default constructor.
-
-
Method Details
-
getEditorStylesheet
Gets the path of the style sheet to use for the WYSIWYG editor.- Returns:
- the style sheet path
-
getHtmlContextInfo
Returns the HTML context info.- Returns:
- the HTML context info
-
getPublishParameters
Gets the additional publish parameters which should be used for the publish functionality in the Acacia editor.- Returns:
- the additional publish parameters
-
getSettingPresets
Returns the setting presets.- Returns:
- the setting presets
-
isReusedElement
Returns true if the edited element is reused.- Returns:
- true if the edited element is reused
-
setEditorStylesheet
Sets the path of the style sheet to use for the WYSIWYG editor.- Parameters:
stylesheetPath
- the style sheet path
-
setHtmlContextInfo
Sets the HTML context info.- Parameters:
htmlContextInfo
- the HTML context info to set
-
setPublishParameters
Sets the additional publish parameters for the publish functionality in the Acacia editor.- Parameters:
publishParams
- the additional publish parameters
-
setReusedElement
Sets the 'reused' status for the currently edited element.- Parameters:
reusedElement
- the new reuse status
-
setSettingPresets
Sets the setting presets.- Parameters:
settingPresets
- the setting presets to set
-