CKEditor5 Label Fix
Following lessons learned developing CKEditor5 Table Fix.
A lightweight plugin that restores HTML label markup support (like for example:
CKEditor 4 accepted this:
-
You hold a federal wine licence issued by the Canada Revenue Agency (CRA) under section 14 of the Excise Act, 2001, valid at the time you apply to the program and up to or after March 31, 2026
CKEditor 5 without the ckeditor5_label_fix plugin turns the above into this (SURPRISE!):
-
You hold a federal wine licence issued by the Canada Revenue Agency (CRA) under
section 14 of the
Excise Act, 2001
, valid at the time you apply to the program and up to or after March 31, 2026
Features
ckeditor5_label_fix is especially useful after upgrading from CKEditor4.
- With the ckeditor5_label_fix plugin the markup now renders as follows:
- You hold a federal wine licence issued by the Canada Revenue Agency (CRA) under section 14 of the Excise Act, 2001, valid at the time you apply to the program and up to or after March 31, 2026
- Provides a faux CKEditor button for easy enablement
- Works with Drupal 10/11 and any text format using CKEditor5
- Designed for upgraded sites coming from CKEditor4 that need legacy label markup preserved
Use cases:
- Government and enterprise sites with legacy or semantic label markup
- WCAG-compliant label elements
- Any site where CKEditor 5 strips valid label structure and formatting
Post-Installation
- Enable the CKEditor5 Label Fix plugin on the same text format. Look for the “Label 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 label markup.
Additional Requirements
None. This module only requires Drupal core CKEditor 5 support and does not depend on contrib modules.
Short name
ckeditor5_label_fix
Supporting organizations
AI tools and hosting
AI tools and integration