CKEditor5 Sup Fix
Following lessons learned developing CKEditor5 Table Fix and CKEditor5 Label Fix which you may also want to consider.
A lightweight plugin that restores HTML <sup> markup support (like for example:
CKEditor 4 accepted this:
CKEditor 5 without the ckeditor5_sup_fix dummy fix plugin turns the above into this (SURPRISE!):
Features
ckeditor5_sup_fix is especially useful after upgrading from CKEditor4.
- With the ckeditor5_sup_fix plugin the markup now renders as follows:
- Provides a faux CKEditor button for easy enablement (just drag the dummy icon
down to the editor bar and then save configuration) - Works with Drupal 10/11 and any text format using CKEditor5
- Designed for upgraded sites coming from CKEditor4 that need legacy sup markup preserved
Use cases:
- Government and enterprise sites with legacy or semantic <sup> markup
- WCAG-compliant <sup> elements
- Any site where CKEditor 5 strips valid <sup> structure and formatting
Post-Installation
- Enable the CKEditor5 Sup Fix plugin on the same text format. Look for the “Sup Fix Dummy” button and add it to the toolbar.
- Save your text format — the plugin is now active.
No visible button will appear in the CKEditor UI, but the plugin will be loaded silently in the background to preserve your full <sup> markup.
Additional Requirements
None. This module only requires Drupal core CKEditor 5 support and does not depend on contrib modules.
Short name
ckeditor5_sup_fix
Supporting organizations
Hosting and development
AI integration services & web architecture