Skip to content

Rich text editor toolbar configuration options

Run these configuration tasks to change the configuration of the rich text editor toolbar.

Video: Using the advanced rich text editor in HCL Digital Experience

Note

In a clustered environment, these tasks need only be run on the primary server.

Enabling TinyMCE editor

As of CF208, the TinyMCE editor is enabled out of the box.

  1. Depending on where you enabled the TinyMCE editor, run the appropriate configuration process.

    • If you disabled this editor in an on-premise setup and need to enable it again, run:

      ConfigEngine(sh/bat) action-deploy-tinymce-editor
      
    • If you disabled this editor and need to enable it again in a Kubernetes deployment, run:

      ConfigEngine(sh/bat) action-deploy-tinymce-editor-cloud
      
  2. If a custom configuration is used for this editor, run this configuration process:

    ConfigEngine(sh/bat) configure-wcm-ephox-editor-custom-configuration
    

    If no custom configuration is used, proceed to Step 3.

  3. Restart the WebSphere_Portal server once the configuration process is completed.

Using TinyMCE editor in the HCL Web Content Manager authoring portlet

Note

These customization steps only apply to the Enhanced editor used in the HCL Web Content Manager authoring portlet.

  1. The TinyMCE editor uses a custom configuration file that is named tiny_config.jsp to set custom parameters for the toolbar. Copy your custom configuration file to wp_profile_root\PortalServer\wcm\shared\app\config\tinymce.

    Note

    Sample configurations can be found in PortalServer_root\wcm\prereq.wcm\wcm\config\templates\shared\app\config\tinymce.

  2. Open a command prompt.

  3. Run the following command from the wp_profile_root/ConfigEngine directory:

    • Windows™

      `ConfigEngine.bat configure-wcm-ephox-editor-custom-configuration -DWasPassword=password -DPortalAdminId=username -DPortalAdminPwd=password`
      
    • UNIX™ and Linux™

      `./ConfigEngine.sh configure-wcm-ephox-editor-custom-configuration -DWasPassword=password -DPortalAdminId=username -DPortalAdminPwd=password`
      

    Note

    An administrator username and password are not required if you already specified the portal administrator username and password with the PortalAdminId and PortalAdminPwd settings in the wkplc.properties file.

  4. Restart the server.

    Note

    To revert to the default editor toolbar, run the task that is named remove-wcm-ephox-editor-custom-configuration on the primary node only.

Using a custom TinyMCE editor toolbar with in-place editing

Note

These customization steps only apply for Web content in-place editing with the TinyMCE editor.

  1. Log in to the WebSphere® Integrated Solutions Console as an administrator.

  2. Click Resources > Resource Environment > Resource Environment Providers > WCM WCMConfigService.

  3. Click Custom properties to update the configuration properties.

  4. Edit or create the property inplaceEdit.toolbarConfigForRichText, and set its value to match the desired toolbar icons.

    Sample values:

    • Single toolbar in space-separated list of buttons

      formatselect | bold italic strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify  | numlist bullist outdent indent  | removeformat
      
    • Multiple toolbars in an array

      [ 'undo redo | bold italic underline | fontselect fontsizeselect', 'forecolor backcolor | alignleft aligncenter alignright alignfull | numlist bullist outdent indent | a11ycheck' ]
      
  5. Save your changes.

  6. Restart the Portal server to apply your changes.

    Note

    To revert to the default editor toolbar, remove the property inplaceEdit.toolbarConfigForRichText and restart the server.

Disabling TinyMCE editor to use the OOB editor

  1. To disable TinyMCE editor and to revert to an earlier version of the Rich Text editor, run the following process:

    ConfigEngine(sh/bat) action-remove-tinymce-editor
    ConfigEngine(sh/bat) configure-wcm-editor
    ConfigEngine(sh/bat) remove-wcm-ephox-editor-custom-configuration (if a custom configuration is used)
    
  2. Restart the WebSphere_Portal server.

Related information

Enabling Textbox I/O editor

Warning

The Textbox.io component in the HCL Digital Experience software is deprecated effective January 31, 2023 and will End of Support (EOS) on January 31, 2024. See Deprecated features for more information.

  1. To enable the new Textbox I/O editor fix using HCL Digital Experience CF18 or later, run this configuration process:

    ConfigEngine(sh/bat) action-deploy-tiny-editors
    
  2. If a custom configuration is used for this editor, run this configuration process:

    ConfigEngine(sh/bat) configure-wcm-ephox-editor-custom-configuration
    
  3. Restart the WebSphere_Portal server once the configuration process is completed.

Beginning with HCL DX 9.5 Container Update CF182, the updated Textbox.io Rich Text editor is deployed out-of-box for the HCL DX 9.5 Containers. When deployed in supported Kubernetes environments, a ConfigEngine task is required to be run before the Textbox.io editor application will work correctly (i.e. before for selecting the Advanced editor for use in Web Content Manager). Run the ConfigEngine task:

/opt/HCL/wp_profile/ConfigEngine/./ConfigEngine.sh action-create-was-variable-tiny-editors-cloud -DDxHost=<FQDN of the exposed DX host> 
-DWasUserid=wpsadmin -DWasPassword=wpsadmin

with <FQDN of the exposed DX host> being the value of the hostname used to access DX.

For example, if the URL for accessing DX in your cloud environment is https://dx-deployment-service-dx-home-sec.net/wps/portal, the DxHost value would be dx-deployment-service-dx-home-sec.net so the ConfigEngine command would look like:

/opt/HCL/wp_profile/ConfigEngine/./ConfigEngine.sh action-create-was-variable-tiny-editors-cloud -DDxHost=dx-deployment-service-dx-home-sec.net 
-DWasUserid=wpsadmin -DWasPassword=wpsadmin

Using a custom Textbox.io editor toolbar

  1. The Textbox.io editor uses a custom configuration file that is named tbio_config.jsp to set custom parameters for the toolbar. Copy your custom configuration file to wp_profile_root\PortalServer\wcm\shared\app\config\textboxio.

    Note

    Sample configurations can be found in PortalServer_root\wcm\prereq.wcm\wcm\config\templates\shared\app\config\textboxio.

  2. Open a command prompt.

  3. Run the following command from the wp_profile_root/ConfigEngine directory:

    • Windows™

      `ConfigEngine.bat configure-wcm-ephox-editor-custom-configuration -DWasPassword=password -DPortalAdminId=username -DPortalAdminPwd=password`
      
    • UNIX™ and Linux™

      `./ConfigEngine.sh configure-wcm-ephox-editor-custom-configuration -DWasPassword=password -DPortalAdminId=username -DPortalAdminPwd=password`
      

    Note

    An administrator username and password are not required if you already specified the portal administrator username and password with the PortalAdminId and PortalAdminPwd settings in the wkplc.properties file.

  4. Restart the server.

    Note

    To revert to the default editor toolbar, run the task that is named remove-wcm-ephox-editor-custom-configuration on the primary node only.

With HCL Digital Experience 9.5 CF18, in order to remediate security vulnerabilities in several open source libraries, the Rich Text Editor Textbox.io requires a minimum supported Java level of 1.8. If you are unable to move to Java 8, it is recommended that you use the out-of-the-box, default CKEditor provided with HCL Digital Experience.

Disabling Textbox I/O editor to use the OOB editor

  1. To disable Textbox I/O editor and to revert to an earlier version of the Rich Text editor, run the following process:

    ConfigEngine(sh/bat) action-remove-tiny-editors
    
    ConfigEngine(sh/bat) configure-wcm-editor
    
    ConfigEngine(sh/bat) remove-wcm-ephox-editor-custom-configuration (if a custom configuration is used)
    
  2. Restart the WebSphere_Portal server.