Allow toggle of automatic update functionality for allowed HTML list

Created on 11 June 2021, almost 4 years ago
Updated 19 May 2025, 15 days ago

Problem/Motivation

On the page /admin/config/content/formats/manage/_your_format_name_ you can configure the ALLOWED HTML TAGS that can be used in CKEDITOR.

I have found that while editing the configuration on this page, when you edit the values, something is swapping out the correct values, for completely wrong values.

This is an example of whats correct :

<em> <strong> <cite> <blockquote> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <drupal-media data-entity-type data-entity-uuid> <a href hreflang data-entity-substitution data-entity-type data-entity-uuid title target rel class="anchor button-box"> <img src alt data-entity-type data-entity-uuid data-align data-caption> <p class="eyebrow section-label small-text"> <drupal-entity data-entity-type data-entity-uuid data-entity-embed-display data-entity-embed-display-settings data-align data-caption data-embed-button data-langcode alt title> <drupal-media data-entity-type data-entity-uuid data-view-mode data-align data-caption alt title>

This is what it somehow gets replaced with while changing configuration on this page.

<0> <1> <2> <3> <4> <5 type> <6 start type> <7> <8> <9> <10> <11 id> <12 id> <13 id> <14 id> <15 id> <16 data-entity-type data-entity-uuid data-view-mode data-align data-caption alt title> <17 href hreflang data-entity-substitution data-entity-type data-entity-uuid title target rel class="anchor button-box"> <18 src alt data-entity-type data-entity-uuid data-align data-caption> <19 class="eyebrow section-label small-text"> <20 data-entity-type data-entity-uuid data-entity-embed-display data-entity-embed-display-settings data-align data-caption data-embed-button data-langcode alt title> <21> <strong> <em> <blockquote> <p class="eyebrow small-text"> <h2> <h3> <h4> <h5> <h6> <a href class="anchor button-box"> <span class="section-label"> <ul> <li> <ol> <img src alt data-entity-type data-entity-uuid data-align data-caption> <drupal-media data-entity-type data-entity-uuid data-view-mode data-align data-caption alt title> <drupal-entity data-entity-type data-entity-uuid data-entity-embed-display data-entity-embed-display-settings data-align data-caption data-embed-button data-langcode alt title>

Steps to reproduce

Enable CKEditor, and go through the normal steps to limit the allowed HTML tags.

This appears to start acting up when I change the values in the "STYLES DROP DOWN" interface while setting up the styles.

Here's a screenshot of what my config looks like.

✨ Feature request
Status

Needs work

Version

11.0 πŸ”₯

Component

ckeditor5.module

Created by

πŸ‡ΊπŸ‡ΈUnited States alphex Atlanta, GA USA

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024