Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
I am unable to save any text format as CKEditor 5 if I have this filter enabled.
Steps to reproduce
- I'm on Drupal 9.5
- Enable CKEditor 5 module (CKEditor 4 is still enabled)
- Edit a text format that has a Rel Attributes Filter enabled
- Set the format to use CKEditor 5
- Try to save
- 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
Comment | File | Size | Author |
---|---|---|---|
#3 | 3400253.patch | 2.02 KB | shderuiter |
Comments
Comment #2
shderuiter CreditAttribution: shderuiter at Dutch Open Projects commentedComment #3
shderuiter CreditAttribution: shderuiter at Dutch Open Projects commentedComment #4
shderuiter CreditAttribution: shderuiter at Dutch Open Projects commentedComment #5
nsalves CreditAttribution: nsalves at NTT DATA commentedHey shderuiter, thanks for the feedback.
Commited the patch and issued a new release to address this
Thanks
Comment #6
nsalves CreditAttribution: nsalves at NTT DATA commented