[upstream] CKEditor 5 PasteFromOffice plugin should not allow MS Office/Apple Pages/Google Docs-specific classes and styles even when HTML is unrestricted

Created on 14 December 2021, about 3 years ago
Updated 9 February 2024, 11 months ago

Problem/Motivation

ckeditor5 PasteFromOffice plugin not working without "Limit allowed HTML tags and correct faulty HTML" turned on. Not sure, if this is by design or this is an issue. From my understanding, PasteFromOffice plugin is part of the drupal build and should work as it is.
If i turn on "Limit allowed HTML tags and correct faulty HTML" other plugins stop rendering correctly in the front end. Like Font plugin and MediaEmbed.

Steps to reproduce

  1. DO NOT have turned on"Limit allowed HTML tags and correct faulty HTML" option for the text format you using
  2. Go to the content and paste Microsoft Word or Apple Pages or Google Docs [example] into CKEditor 5
  3. Save changes or click the Source button if you have it enabled.
  4. Inspect and you will see Microsoft Word/Apple Pages/Google Docs styling in there.

Test documents:
Google Docs
Microsoft Word

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Feature request
Status

Fixed

Version

11.0 🔥

Component
CKEditor 5 

Last updated 2 days ago

Created by

🇺🇸United States vlyalko

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.

Production build 0.71.5 2024