NoelOConnell/quill-image-uploader

Image keep loading, image paste twice with react-quill

Opened this issue · 1 comments

Hi everyone, currently I am facing a problem with our library; it seems that all the images haven't finished uploading yet
I using react-quill: 2.0.0 and latest version of quill-image-uploader

Let's take the official demo as the bug reproduction: CodeSandbox
First problem:

  • If the image hasn't finished uploading, then if I press the enter key, the image will keep showing loading forever
image

Second problem:
If the image hasn't finished uploading, and then I press a random key, for example, 'abc', the image will be duplicated: one will have the URL returned from the server, and the other will be in base64 format

image

Has anyone encountered the same issue and found a solution they can share with me? It would be very helpful

I too am experiencing images pasting twice, although upload time isn't a factor and the images appear both as the uploaded URL and base64 without the further user interaction you mentioned vis a vis keypresses.

image