Class WysiwygEditor

    • Field Detail

      • CONFIG_PARAM_PATH

        public static final java.lang.String CONFIG_PARAM_PATH
        See Also:
        Constant Field Values
    • Constructor Detail

      • WysiwygEditor

        public WysiwygEditor()
    • Method Detail

      • render

        public void render​(org.zkoss.zk.ui.Component parent,
                           EditorContext<java.lang.String> context,
                           EditorListener<java.lang.String> listener)
        Description copied from interface: CockpitEditorRenderer
        Creates a new editor component and attaches it to the specified Component component.
        Parameters:
        parent - parent component the editor should be attached to
        context - the context for the editor creation
        listener - the listener to notify the rest of the world about value changes and other events
      • initAdditionalParameters

        protected void initAdditionalParameters​(org.zkforge.ckez.CKeditor editorView,
                                                EditorContext<java.lang.String> context)
      • isBase64EncodingEnabled

        protected boolean isBase64EncodingEnabled​(EditorContext<java.lang.String> context)
      • getDefaultJsConfigURI

        protected java.lang.String getDefaultJsConfigURI​(EditorContext<java.lang.String> context)
        Resolves default configuration js file URI based on the cockpit property specified as 'defaultJsConfig' editor setting in the editor definition.
        Parameters:
        context - editor context
        Returns:
        file URI defined as cockpit property key 'defaultJsConfig' or empty string of no default configuration was specified for wysiwyg editor.
      • getCustomToolbarConfig

        protected java.lang.String getCustomToolbarConfig​(EditorContext<java.lang.String> context)
        Resolves custom toolbar configuration based on custom-attribute 'toolbar' specified for given editor instance.
        Parameters:
        context - editor context
        Returns:
        file URI defined as 'customJsConfig' attribute or empty string if no custom config was specified.
      • onChangeEvent

        protected void onChangeEvent​(EditorContext<java.lang.String> context,
                                     EditorListener<java.lang.String> listener,
                                     org.zkforge.ckez.CKeditor cKeditor)