Closed nmitra6 closed 3 years ago
hi, @nmitra6 . I tried to fixed this issue, but none of the errors throw when I dropped a plain text file, could you apply more details?
quill-image-drop-and-paste
version?quill-image-drop-and-paste - version 1.2.1 simple text file with 1 or 2 sentences. suffix - .txt
fixed on v1.2.5
When a plain text file is dropped on editor, following errors are raised at browser console and drop event fails (Chrome Version 91.0.4472.164 (Official Build) (64-bit))
QuillImageDropAndPaste.js:162 Uncaught TypeError: file.getAsString is not a function at QuillImageDropAndPaste.js:162 at FileList.forEach ()
at ImageDropAndPaste.readFiles (QuillImageDropAndPaste.js:152)
at ImageDropAndPaste.handleDrop (QuillImageDropAndPaste.js:121)
(anonymous) @ QuillImageDropAndPaste.js:162
readFiles @ QuillImageDropAndPaste.js:152
handleDrop @ QuillImageDropAndPaste.js:121