ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Pasting images from MC Word doesn't work in manual test in safari

Open illia-stv opened this issue 1 year ago • 1 comments

📝 Provide detailed reproduction steps (if any)

  1. Select entire document including image in MC Word
  2. Open manual test in Safari
  3. Paste it in the editor

✔️ Expected result

Images are pasted

❌ Actual result

Images didn't paste

❓ Possible solution

If you have ideas, you can list them here. Otherwise, you can delete this section.

📃 Other details

  • Browser: …
  • OS: …
  • First affected CKEditor version: …
  • Installed CKEditor plugins: …

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

illia-stv avatar Feb 22 '24 14:02 illia-stv

This is happening only in manual tests in Safari.

Looking at the console you can see:

Screenshot 2024-02-22 at 18 13 58

This indicates that CSP is enabled in this manual test and it does not allow img-src blob:. Since Safari is providing images pasted from the Word as Blob objects, this is causing the failure of image load. The solution would be to update CSP to allow blob: for img-src.

Probably we should update CSP guide: https://ckeditor.com/docs/ckeditor5/latest/installation/advanced/csp.html

niegowski avatar Feb 22 '24 17:02 niegowski