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.
-
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.
-
Open a command prompt.
-
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.
-
-
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.
-
Log in to the WebSphere® Integrated Solutions Console as an administrator.
-
Click Resources > Resource Environment > Resource Environment Providers > WCM WCMConfigService.
-
Click Custom properties to update the configuration properties.
-
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' ]
-
-
Save your changes.
-
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.