[upstream] Remove Format button does not remove `style` attributes from block-level elements

Created on 14 November 2022, about 2 years ago
Updated 1 February 2024, 11 months ago

Problem/Motivation

The Remove Format button does not remove inline styles. When I have some text that contains inline styles, I select/highlight some text in the editor but the Remove Format button remains gray/inactive, and clicking it does nothing; formatting is not stripped. For example paragraph and span tags with some inline styles, and those inline styles don't get removed. There are no JavaScript errors in the console, either in Chrome or Firefox.

Steps to reproduce

Select some text in the editor and click the Remove Format button.

Proposed resolution

https://github.com/ckeditor/ckeditor5/issues/13983

Remaining tasks

No idea

User interface changes

None

API changes

On https://ckeditor.com/docs/ckeditor5/latest/features/remove-format.html I see there's a Ckeditor5 API for extending the Remove Format plugin to allow removing specific elements using the isFormatting property, but I think this is not needed here; somehow it seems the default Remove Format functionality isn't working, at least not for me.

Data model changes

No idea

Release notes snippet

N/A

🐛 Bug report
Status

Postponed

Version

11.0 🔥

Component
CKEditor 5 

Last updated 2 days ago

Created by

🇺🇸United States caspervoogt

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

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.

Production build 0.71.5 2024