Legacy RTE customization doesn’t work in the new AEM Content Fragment Editor
This article explains how to migrate custom Rich Text Editor (RTE) plugins in Adobe Experience Manager Content Fragment Editor from the deprecated TinyMCE extension points to the new TipTap/ProseMirror-based editor, outlining supported customization options and migration steps.
Description description
Environment
- Adobe Experience Manager as a Cloud Service
- AEM Content Fragment Editor
- Rich Text Editor
- Adobe App Builder UI Extensibility
Issue/Symptoms
- You see that a legacy custom RTE plugin doesn’t work in the current Content Fragment Editor.
- You need to add a custom button to the RTE toolbar.
- You need authors to apply custom typography, HTML elements, or CSS classes to selected content.
- You need to determine whether to use an RTE toolbar extension or replace the field with a custom field.
- You can’t reuse an implementation that depends on an unsupported legacy editor integration.
Cause
The current Content Fragment Editor uses the App Builder UI Extensibility framework for supported customizations. Legacy implementations that directly depend on a previous editor integration must be migrated to the current extension points. The supported options include the rte extension point for toolbar customization and custom fields for replacing a field’s editing interface.
Resolution resolution
Follow the steps below to resolve the issue:
- Review the existing custom RTE implementation and identify the required toolbar actions, formatting behavior, inserted markup, CSS classes, and field-specific logic.
- Use the Content Fragment Editor’s App Builder-based
rteextension point when the customization adds or modifies RTE toolbar actions. - Use
getCustomButtons()to define custom toolbar buttons, including each button’s unique ID, tooltip, icon, andonClick()handler. - Return the appropriate instruction from the button’s
onClick()handler, such asinsertContentfor adding markup at the current cursor position orreplaceContentwhen existing RTE content must be replaced. - Use
getCoreButtons()orremoveButtons()when the implementation must add or remove standard RTE toolbar actions. - For custom typography or styling, insert the required HTML element and CSS class through the toolbar action, and implement the corresponding CSS in the experience that renders the Content Fragment content.
- Use a custom field through the Content Fragment Editor UI Extensibility framework when the use case requires replacing the standard field interface rather than adding an RTE toolbar action.
- Migrate the required functionality to the selected supported approach and deploy the App Builder extension to the intended AEM as a Cloud Service environments.
- Create or edit Content Fragments and verify that the required toolbar buttons, formatting behavior, inserted content, CSS classes, and custom fields work as expected.
- Monitor Experience League and the AEM developer documentation for changes to Content Fragment Editor extension points and configuration options.
recommendation-more-help
experience-cloud-kcs-help-kbarticles