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
244 stars 100 forks source link

Error on handlePaste on chrome #88

Closed jordyvanderpoel closed 1 year ago

jordyvanderpoel commented 1 year ago

Using quill-image-uploader@1.2.2, when pasting an image from clipboard using Google Chrome, I get an error:

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'index')
    at e.value (quill.imageUploader.min.js:1:5838)
    at quill.imageUploader.min.js:1:5464

which seems to be this.range being null at insertToEditor. This issue appears with different users, but only seems to appear in the browser Google Chrome.

tmKnight01 commented 10 months ago

Hi, I also meet this problem, how do you resolve it ?

jordyvanderpoel commented 10 months ago

The issue seemed to have been resolved in release 1.2.4, updating to that version worked for me.