ckeditor / ckeditor4

The best enterprise-grade WYSIWYG editor. Fully customizable with countless features and plugins.
https://ckeditor.com/ckeditor-4
Other
5.8k stars 2.48k forks source link

Content pasted from Word document in read-only mode sometimes losses styling/formatting #4694

Open sculpt0r opened 3 years ago

sculpt0r commented 3 years ago

Type of report

Failing test

Provide detailed reproduction steps (if any)

  1. Try to paste the second docx in readonly mopde (CKEditor4.PFW.Sample.Mixed_styles) from tests/plugins/pastefromword/manual/pastefromword

Expected result

The pasted content should look the same as in MSWord

Actual result

There is no style applied to pasted text

Other details

The first sample was pasted as expected

f1ames commented 3 years ago

It seems to be working for me (IE11 on Windows 10) :thinking: Could you take a look on a gif below and tell if those are the exact same steps to reproduce the issue?

Animation

sculpt0r commented 3 years ago

My steps were the same. I even rebuild the entire 4.16.1 and run the test again - with the same result...

I have Office Professional Plus 2016

pastefromword

Dumluregn commented 3 years ago

Did you try copying after turning off Widok chroniony in Word? Maybe it restricts the content in the clipboard?

sculpt0r commented 3 years ago

I thought I tested it with and without editing enabled and it failed... But now, the second sample looks fine after editing is ON. However, the first sample works fine with editing OFF :thinking:

So, should we close this issue?

f1ames commented 3 years ago

I thought I tested it with and without editing enabled and it failed... But now, the second sample looks fine after editing is ON. However, the first sample works fine with editing OFF

So, should we close this issue?

Interesting... we could keep it open for future reference but let's adjust a title. OTOH I would say it's upstream then :thinking:

Let's leave it open and se if anyone else encounters similar issues.