Quantcast
Viewing all articles
Browse latest Browse all 297291

[GHS] Custom/unofficial HTML tags not retained: <drupal-media>, <drupal-entity>, <foobar>

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

  1. Create one text format which has media embed and media library enabled
  2. Create Full HTML text formats for CKEditor 5 and CKEditor 4 and ensure media embed filter is disabled
  3. Create content that includes <drupal-media> using text format that has media embed enabled
  4. Switch to CKEditor 4 Full HTML and ensure that <drupal-media> is retained
  5. 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


Viewing all articles
Browse latest Browse all 297291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>