ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.5k stars 3.7k forks source link

Alignment doesn't work for heading when pasting from MS Word #6366

Open jswiderski opened 4 years ago

jswiderski commented 4 years ago

📝 Provide detailed reproduction steps (if any)

  1. Download and open attached MS Word file
  2. Copy and Paste its contents inside the editor. You can use your custom build (with PasteFromOffice, Heading and Alignment plugins or our demo - https://ckeditor.com/docs/ckeditor5/latest/features/pasting/paste-from-word.html) Document.zip

✔️ Expected result

Heading should be in center.

❌ Actual result

Heading is positioned to the left. obraz

📃 Other details


If you'd like to see this fixed sooner, add a 👍 reaction to this post.

FilipTokarski commented 4 years ago

Happens only with the file you provided. Otherwise I cannot reproduce this. I checked it on demo page ( older versions too ) and on custom editor with PFO, Alignment and Heading plugins.

jswiderski commented 4 years ago

This is weird. I have created this document in MS Office 2010 (quite old but should work the same IMO) by inserting a heading and aligning it to center. All has been done with MS Word buttons (so this is quite standard) - there is a button for Headings and a button for alignment: obraz

You can also check a document attached to support ticket 6366. It doesn't work as well so mine is not the only one.