NoelOConnell / quill-image-uploader

A module for Quill rich text editor to allow images to be uploaded to a server instead of being base64 encoded
MIT License
228 stars 87 forks source link

Image keep loading, image paste twice with react-quill #100

Open minhtri06ltr opened 3 months ago

minhtri06ltr commented 3 months ago

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:

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

john-patterson-crane commented 1 month ago

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