matcher-pattern-deprecated-attributes-class-key ckeditor warnings

Created on 3 October 2023, about 1 year ago
Updated 13 December 2023, 12 months ago

Problem/Motivation

Ckeditor5 throws the matcher-pattern-deprecated-attributes-class-key ckeditor warning whenever the class attribute is enabled in the text format settings and a and a ckeditor5 with that format containing anchor tags is opened:

Steps to reproduce

On vanilla D10

  1. Enable editor_advanced_link
  2. Enable the class attribute of the advanved link settings on the text format configuration form
  3. Create a content of a type containing any longtext field that's using ckeditor5 (for example body)
  4. In the longtext field add some anchor tags via the link toolbar button
  5. Save the content and re-visit the edit form
  6. Open the console and see the warnings mentioned above, one for each anchor tag

Proposed resolution

Use the classes property instead of a class attribute in the upcast converter.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024