- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Agreed.
The upstream issue is https://github.com/ckeditor/ckeditor5/issues/11580.
- 🇬🇧United Kingdom mohithasmukh
Hi there,
I am also facing the same issue, when the content editors go in to remove the formatting the inline styles are not removed. Has anyone found any workaround this?
Thank you.
- 🇺🇸United States AaronBauman Philadelphia
The workaround we're advising clients is to use the "paste as plain text" button, or cmd-shift-v
- 🇺🇸United States caspervoogt
This apparently just got fixed on the ckeditor5 master branch. See https://github.com/ckeditor/ckeditor5/pull/13949.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Wonderful! Looks like many
Style
-related bugs are being fixed in the current development cycle: https://github.com/ckeditor/ckeditor5/milestone/67?closed=1.… but it did not yet ship in CKEditor 37.1.0, which we just updated to yesterday: 📌 Update CKEditor 5 to 37.1.0 Fixed .
So it looks like this will be for either 37.2.0 or 38.x. Still, great news! 😊
- 🇵🇱Poland witeksocha
Just keep in mind we improved the Remove format for inline, as it was the fastest :) The Remove format for blocks will be tracked here: https://github.com/ckeditor/ckeditor5/issues/13983
- 🇺🇸United States caspervoogt
Witek beat me here.. I was going to post the same thing. Very happy to see this progressing.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Still tracking for https://github.com/ckeditor/ckeditor5/issues/13983 — updating target version.
- 🇺🇸United States caspervoogt
https://github.com/ckeditor/ckeditor5/issues/13983 has only 7 votes; maybe if some more Drupal folks can log into Github and upvote it, the CKEditor maintainers will give it higher priority.
Doesn't work for me either. Even somehow pasting as plain text with right click didn't solve this problem for text copied directly from word which is using its own fonts and styles.
- 🇪🇸Spain eduardo morales alberti Spain, 🇪🇺
As Wim Leers says in the comment https://www.drupal.org/project/drupal/issues/3321254#comment-15025068 🐛 [upstream] Remove Format button does not remove `style` attributes Postponed it was fixed on https://github.com/ckeditor/ckeditor5/releases/tag/v38.0.0 but Drupal 9.5.x require "ckeditor5": "~35.4.0", on 11.x "ckeditor5": and 10.x seems that is required "~39.0.1".
- 🇬🇧United Kingdom mohithasmukh
Hi all,
I am confused but what is the workaround for websites that are still on 9.5 core?
Thanks.
- 🇪🇸Spain eduardo morales alberti Spain, 🇪🇺
@mohithasmukh There are no workarounds, the solution is to keep CKEditor 4 until update Drupal to version 10 and then use CKEditor 5, the 9.5 support ends in November.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
#31: 🐛 [upstream] Remove Format button does not remove `style` attributes Postponed is referring to the
Style
plugin and theRemove Format
button working with that.This issue is about the
Remove Format
button removingstyle
attributes. That's a very different problem space.https://github.com/ckeditor/ckeditor5/issues/13983 is the blocker, and it now has 28 votes already.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Reported once more, now by @igorbarato, at https://drupal.slack.com/archives/C01GWN3QYJD/p1695231744469799.
Clarifying issue title.
- 🇺🇸United States aasarava
Unfortunately, the fix to remove inline formatting still excludes classes/styles on links. I've opened a followup issue:
https://github.com/ckeditor/ckeditor5/issues/15318 - 🇬🇧United Kingdom Hephaestus
As it doesn't look like this is going to be implemented upstream in the near future, is anyone aware of a workaround to force this behaviour, if you're happy to take a scorched earth approach to attributes on elements?
We've got clients trying to paste in a lot of documents from Word, and the "remove formatting" button only stripping styles from inline elements tends to leave the document with a broken mix of styling, mostly relating to sizing and spacing. Stripping styles after the fact in the filter prevents intentional styling and makes the editing experience very inconsistent when they're still visible within the editor.
- 🇬🇧United Kingdom scott_euser
We have been using the 'CK editor 5 Paste Filter' module as a temp fix to catch things on paste. Not quite the same so might not work for you.
- 🇬🇧United Kingdom Hephaestus
Thanks Scott, that does solve our immediate issue.