Skip to content

Rich text editor toolbar configuration options

The TinyMCE Editor 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 (DX).

Using TinyMCE editor in the WCM authoring portlet

You can use the TinyMCE editor in the Web Content Manager (WCM) authoring portlet and in inline editing. To use TinyMCE in the authoring porlet, go to Preferences > Edit Shared Settings in the authoring portlet page.

On the Edit Shared Settings page, open the Editor Options menu. Go to the Select the rich text editor to use in rich text fields dropdown menu and choose Enhanced Editor. Click OK.

After configuring your authoring portlet to use TinyMCE, you can create a new piece of content with rich text using the TinyMCE Editor.

Using a custom configuration with TinyMCE editor in the WCM authoring portlet

Notes

  • These customization steps only apply to the Enhanced editor used in the HCL WCM authoring portlet.
  • If working in a clustered deployment, run these steps on the primary node only. Re-sync the cluster when steps are complete.
  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 remove-wcm-ephox-editor-custom-configuration task and restart the server.

        ConfigEngine(sh/bat) remove-wcm-ephox-editor-custom-configuration -DWasPassword=password -DPortalAdminId=username -DPortalAdminPwd=password
    

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.

Related information