quill-image-uploader icon indicating copy to clipboard operation
quill-image-uploader copied to clipboard

Image keep loading, image paste twice with react-quill

Open minhtri06ltr opened this issue 11 months ago • 2 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

minhtri06ltr avatar Mar 22 '24 10:03 minhtri06ltr

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

jp-crane avatar Jun 03 '24 22:06 jp-crane

I have the same problem here. Don't know how to correct that. Drag and drop works fine (with only one image) if I remove imageBlot from the formats but then I lose the benefit of the upload button in the toolbar.

philohelp avatar Aug 18 '24 23:08 philohelp