Class CmsEditorContext

java.lang.Object
org.opencms.ade.contenteditor.client.CmsEditorContext

public class CmsEditorContext extends Object
This class can be used by code which uses the Acacia editor to pass additional information to the editor on startup.

  • Constructor Details

  • 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

      public boolean isReusedElement()
      Returns true if the edited element is reused.
      Returns:
      true if the edited element is reused
    • setEditorStylesheet

      public void setEditorStylesheet(String stylesheetPath)
      Sets the path of the style sheet to use for the WYSIWYG editor.
      Parameters:
      stylesheetPath - the style sheet path
    • setHtmlContextInfo

      public void setHtmlContextInfo(String htmlContextInfo)
      Sets the HTML context info.

      Parameters:
      htmlContextInfo - the HTML context info to set
    • setPublishParameters

      public void setPublishParameters(Map<String,String> publishParams)
      Sets the additional publish parameters for the publish functionality in the Acacia editor.

      Parameters:
      publishParams - the additional publish parameters
    • setReusedElement

      public void setReusedElement(boolean reusedElement)
      Sets the 'reused' status for the currently edited element.
      Parameters:
      reusedElement - the new reuse status
    • setSettingPresets

      public void setSettingPresets(Map<String,String> settingPresets)
      Sets the setting presets.

      Parameters:
      settingPresets - the setting presets to set