Supported attribute(s) not showing in CKEditor 5 Source Editing plugin error message

Created on 6 May 2024, 12 months ago

Problem/Motivation

After updating a website from Drupal 10.1.8 to 10.2.6, there is a error message said

The following attribute(s) are already supported by enabled plugins and should not be added to the Source Editing "Manually editable HTML tags" field: .

The supported attribute's name is missing from the error message.

An expected error message is supported to provide the specific attribute name that is overlapped with plugins. Such as,

The following attribute(s) can optionally be supported by enabled plugins and should not be added to the Source Editing "Manually editable HTML tags" field: Style (<ul class>).

Steps to reproduce

  1. Login in a Drupal 10.1.8 website as an admin user
  2. .

  3. Create a text format using CKEditor 5 with Source editing plugin and other plugins.
  4. In the 'Manually editable HTML tags' text box, add the following tags and attributes.
    <cite> <blockquote cite> <ul data-toc data-toc-headings type class> <ol type> <li class> <dl> <dt> <dd> <h2 id class> <h3 id> <h4 id> <h5 id> <h6 id> <span class> <iframe id title src allowfullscreen allow width height frameborder> <kbd> <p id class="text-align-center introduction alert-header au-display-xl"> <a aria-describedby href hreflang title id alt target class="au-btn au-btn--secondary au-btn--tertiary au-btn--pink btn--margin-left link-arrow webform-dialog webform-dialog-narrow social-share__service social-share__service--twitter social-share__service--github social-share__service--govcms"> <div id class="au-page-alerts au-page-alerts--error au-page-alerts--warning au-page-alerts--success au-page-alerts--info social-share social-share--row social-share--branded social-share--large social-share--rounded social-share--icon-only block-content dropdown-button dropdown-content container row col-md-1 col-md-2 col-md-3 col-md-4 col-md-5 col-md-6 col-md-7 col-md-8 col-md-9 col-md-10 col-md-11 col-md-12"> <img src alt data-entity-type data-entity-uuid data-align data-caption> <drupal-entity data-entity-type data-entity-uuid data-entity-embed-display data-entity-embed-display-settings data-align data-caption data-embed-button alt title width height data-langcode> <i class> <button class>
    </li>
    <li>Save the text format.</li>
    <li>No error as this point.</li>
    <li>Update this website to 10.2.6</li>
    <li>login as admin user.</li>
    <li>Go the configure page of that text format created above.</li>
    <li>Save the text format without any changes.</li>
    <li>The error occured.</li>
     

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Release notes snippet

TBD

🐛 Bug report
Status

Active

Version

10.2

Component
CKEditor 5 

Last updated about 19 hours ago

Created by

🇦🇺Australia mingsong 🇦🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024