Filter empty tags is broken when used with CKEditor 5.

Created on 27 February 2023, over 1 year ago
Updated 8 May 2023, about 1 year ago

Problem/Motivation

When using the CKEditor 5 editor, when saving the filter, CKEditor 5 does a check to make sure that HTML restrictions are correct. (This didn't happen in CKEditor 4). Since the FilterEmptyTags sets the type `Drupal\filter\Plugin\FilterInterface::TYPE_HTML_RESTRICTOR` it checks the settings for each of the plugins for the allow_html setting and diffs the restricted elements.

Steps to reproduce

Enable the filter empty tags on a filter with CKEditor 5 as the editor.

Proposed resolution

Remove the TYPE_HTML_RESTRICTOR type, but maybe change this to a TYPE_TRANSFORM_IRREVERSIBLE type.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia gordon Melbourne

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

Comments & Activities

Production build 0.69.0 2024