quill icon indicating copy to clipboard operation
quill copied to clipboard

Can't paste image from Word in Chrome Browser

Open DavidFrancois opened this issue 6 years ago • 2 comments

Hello, I have some issue working with ngx-quill and Chrome browser. The issue seemed to be with quilljs itself since I tried on the official quilljs.com site and it appears to have the exact same behaviour (quite logically).

The library correctly allows one to copy/paste an image from MSWord (or any image file on the file system actually) when working with Firefox. Sadly it doesn't seem to work at all with Chrome.

After searching for a while I didn't see any library/issue to use as a workaround.

ImageDropAndPaste and ImageDropModule has already been tested.

I also tried to use add an Handler but it doesn't seem to be triggering at all (quill.addHandler('image', function) ). I'm not 100% sure about how to manage the handler with Angular though.

Steps for Reproduction

  1. Open Microsoft Word and create an image from a table / pick an image file on your filesystem (tested with .jpg/.png on my desktop)
  2. Copy the image (via Ctrl + C or right click + copy, doesn't matter)
  3. Visit quilljs.com and try to paste the image in the editor

Expected behavior:

The copied image appears in the editor

Actual behavior:

From word, nothing appears on Chrome. From filesystem, the file names appears on Chrome.

Platforms:

Latest Google Chrome on MacOS/Windows. ( didn't test on linux)

Version:

Latest quilljs version since I used the official site as an example.

DavidFrancois avatar May 25 '20 15:05 DavidFrancois

Issue has been fixed by Updating Chrome to latest version.

DavidFrancois avatar Jun 02 '20 12:06 DavidFrancois

I have again the same problem on Chrome.

DarCas avatar Aug 27 '21 09:08 DarCas