Create a Custom Plugin: AEM's CKEditor allows you to customize the toolbar by adding plugins. To include a font size plugin, you will need to define the plugin in a custom configuration file.
Modify the RTE Configuration: In your AEM project, locate the cq:dialog for your component, where the RTE is defined. If you're using the default RTE, you'll need to configure it in the dialog’s JSON or JavaScript file.
Add the Font Size Plugin to the Configuration: You need to add the plugin and configure the toolbar. Here’s an example of how to include the font size plugin in the configuration.
This will add a font size selector to the toolbar. Make sure the font and fontSize plugins are included in the plugins array.
Step 2: Configure the RTE in the Dialog
If you're using a dialog to manage the component, ensure that the dialog is properly configured to include the custom RTE settings. You will need to use the RTE configuration in the cq:dialog structure.
Here is an example configuration in an AEM dialog that includes the fontSize plugin:
To add a font size plugin to the Rich Text Editor (RTE) in Adobe Experience Manager (AEM) as a Cloud Service, you need to customize the Rich Text Editor (RTE) configuration using the Text component’s dialog and cq:inplaceEditing configuration.
Step-by-Step to Add Font Size Plugin in AEM RTE:
Create or Update RTE Plugin Configuration
Ensure your text component uses the correct rtePlugins configuration.
@shwetha1994Just checking in — were you able to resolve your issue? We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it — your insights could really benefit the community. Thanks again for being part of the conversation!