Problem/Motivation
<drupal-media>
elements are removed by CKEditor 5 if embed media is disabled even when using Full HTML configuration. With CKEditor 4 the same configuration would retain <drupal-media>
elements.
The same is true for any custom/non-official HTML tag. Only those that have a CKEditor 5 plugin to add support for them can be retained (such as <drupal-media>
), but any/all custom/non-official HTML tags must be retained when a text format+CKEditor 5 are configured to allow arbitrary HTML.
Steps to reproduce
- Create one text format which has media embed and media library enabled
- Create Full HTML text formats for CKEditor 5 and CKEditor 4 and ensure media embed filter is disabled
- Create content that includes
<drupal-media>
using text format that has media embed enabled - Switch to CKEditor 4 Full HTML and ensure that
<drupal-media>
is retained - Switch to CKEditor 5 Full HTML and ensure that
<drupal-media>
is removed
Proposed resolution
Wait for upstream bugfix: https://github.com/ckeditor/ckeditor5/issues/11432
Remaining tasks
TBD
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
TBD