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 #3384398: Unclear validation errors when upgrading text formats to CKEditor 5

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

CommentFileSizeAuthor
#3 3400253.patch2.02 KBshderuiter
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

shderuiter created an issue. See original summary.

shderuiter’s picture

shderuiter’s picture

FileSize
2.02 KB
shderuiter’s picture

Status: Active » Needs review
nsalves’s picture

Hey shderuiter, thanks for the feedback.
Commited the patch and issued a new release to address this
Thanks

nsalves’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.