Make 'Limit allowed HTML tags and correct faulty HTML' not accessible if CKEditor 5 is chosen

Created on 1 March 2024, 10 months ago

Problem/Motivation

If the CKEditor5 is chosen as the editor of a text format, the 'Limit allowed HTML tags and correct fault HTML' filter is not useful and duplicate one setting (allowed tags) into two places. Make no sense and problematic . It should be not accessible if CKEditor 5 is the editor of that text format.

Steps to reproduce

  1. Go to the text format setting(/admin/config/content/formats/manage/[format machine name])
  2. Enable the 'Limit allowed HTML tags and correct fault HTML' filter and add some tags into it. For example
  3. Change the 'Text editor' from CKEditor to CKEditor5
  4. Save the setting.
  5. Clear the cache.
  6. Go to a content page where this text format is used for a text field in which an <a> tag with class attribute is included in the text filed.
  7. Now the class attribute is filtered out as the auto-migration method didn't pick up the <a class> allowed tag from the previous settings.

Proposed resolution

Make the 'Limit allowed HTML tags and correct fault HTML' filter not accessible when CKEditor 5 is chosen as the editor.

Remaining tasks

PHP test.

User interface changes

Yes.

API changes

N/A

Data model changes

N/A

Release notes snippet

Improve user experience by making ''Limit allowed HTML tags and correct fault HTML' filter not accessible if CKEditor5 is chosen as the editor of a text format.

Feature request
Status

Active

Version

11.0 🔥

Component
Filter 

Last updated 6 days ago

No maintainer
Created by

🇦🇺Australia mingsong 🇦🇺

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

Comments & Activities

Production build 0.71.5 2024