Filter plugin type is wrong, which causes CKEditor 5 to complain

Created on 8 November 2023, about 1 year ago
Updated 8 December 2023, 12 months ago

Problem/Motivation

I am unable to save any text format as CKEditor 5 if I have this filter enabled.

Steps to reproduce

  1. I'm on Drupal 9.5
  2. Enable CKEditor 5 module (CKEditor 4 is still enabled)
  3. Edit a text format that has a Rel Attributes Filter enabled
  4. Set the format to use CKEditor 5
  5. Try to save
  6. Receive validation errors described in this issue 💬 Unclear validation errors when upgrading text formats to CKEditor 5 Fixed

Steps to reproduce

Proposed resolution

Filters declare themselves as Drupal\filter\Plugin\FilterInterface::TYPE_HTML_RESTRICTOR, which is wrong.

It should be \Drupal\filter\Plugin\FilterInterface::TYPE_TRANSFORM_IRREVERSIBLE.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇱Netherlands shderuiter

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

Comments & Activities

Production build 0.71.5 2024