Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 299247

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

$
0
0

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


Viewing all articles
Browse latest Browse all 299247

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>