CKEditor 5 Text Styles can be applied to any element even when a tag is specified

Created on 18 January 2023, over 1 year ago
Updated 28 March 2023, over 1 year ago

Problem/Motivation

In CKEditor 4 if I put a style in the styles field like a.my-style then I could only apply that style to <a> tags. In CKEditor 5 I can apply a text style to any element even if I've specified a tag in the styles field.

This appears to work in the demo on CKEditor.com so this is something that might need to be fixed in the module.

Steps to reproduce

Add a style like a.my-style to the styles field and then attempt to add it to regular/non-link text using the Styles dropdown.

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

Theoretically there should be no UI changes.

API changes

TBD

Data model changes

TBD

Release notes snippet

TBD

πŸ› Bug report
Status

Closed: duplicate

Version

10.1 ✨

Component

ckeditor.module

Created by

πŸ‡ΊπŸ‡ΈUnited States jds1 Hudson Valley, NY

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.