Problem/Motivation

There should not be any JS warnings in browser console.

Steps to reproduce

Drupal 11/10:

- install/enable CKEditor 5 Link Attributes
- add group: Button and attributes: class|btn btn-danger
- save

in editor:
- create a link, set attribute to Button

result:
warning in browser console:

ckeditor5-dll.js?v=45.2.2:5 matcher-pattern-deprecated-attributes-class-key {class: 'btn btn-info'} 
Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-matcher-pattern-deprecated-attributes-class-key

See screenshot

Clean installation, no other modules which affect CKEditor5 Editor's links are enabled.

Proposed resolution

Fix code, there should not be any warnings in console

Remaining tasks

Fix code

User interface changes

None

API changes

TBA

Data model changes

TBA

CommentFileSizeAuthor
warning.png258.06 KBjannakha
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jannakha created an issue. See original summary.

salmonek made their first commit to this issue’s fork.

salmonek’s picture

Status: Active » Needs review

Hi Jen

Thank you for bringing this issue to uor attention.
We were indeed using deprecated format for passing the classes configuration. I have pushed MR with fix.

salmonek’s picture

Status: Needs review » Reviewed & tested by the community

Our QA team confirmed the patch is working. Merging and will mark as fixed after release.
In case it's not working for you, please reopen in case the ticket is already closed.

salmonek’s picture

Released in 1.5.0

salmonek’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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