ckeditor / ckeditor5

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

Handle notification about file formats that can't be pasted from Word (using the Paste as image option) #13998

Open Mgsy opened 1 year ago

Mgsy commented 1 year ago

📝 Provide detailed reproduction steps (if any)

  1. Open a new Word document.
  2. Type something.
  3. Select all and copy.
  4. Open another Word document.
  5. Choose the Paste as image option.
  6. Select all.
  7. Paste to the editor.

✔️ Expected result

The image is pasted.

❌ Actual result

The image is not pasted and there is the error in the console.

t allowed to load local resource: file:///Users/kacper/Library/Group%20Containers/UBF8T346G9.Office/TemporaryItems/msohtmlclip/clip_image002.png

📃 Other details

Clipboard data

Sample document


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

Witoso commented 5 months ago

Maybe rel #15758

illia-stv commented 5 months ago

Unfortunately Word uses emf file format for "paste with picture" option which is not supported in modern browsers. I have checked another popular editors like CKEditor 4 or Tiny MCE there is also impossible to paste that.

Tiny MCE

image

CKEditor 4

image

illia-stv commented 5 months ago

Maybe rel #15758

It's no related, because there are no pictures with emf format, then my assumption is problem could be related to something else.

Witoso commented 5 months ago

To all watching, this is a "can't fix" category on our side, I'm changing the ticket to some better notification about an invalid file format.

Goal: the text in the editor shows "Unsupported file type"

FilipTokarski commented 1 week ago

Actually, when you select only the image (EMF format), it pastes properly. The problem is only when you select all in Word before copying.