benwinding / quill-image-compress

A Quill rich text editor Module which compresses images uploaded to the editor
https://benwinding.github.io/quill-image-compress/src/demo.html
MIT License
123 stars 30 forks source link

Fix word handling #15

Closed zeevl closed 3 years ago

zeevl commented 3 years ago

There's an issue when pasting text from MS Word; one of the clipboard types is image/png, which contains a useless black box. Certainly an issue with Word but is not something they'll likely change at this point.

So, I added a check for text/html in the included types to determine if the paste should be handled. This may not be the best solution; open to other suggestions. And feel free not to merge -- this can just be for future documentation, if you prefer. :)

benwinding commented 3 years ago

Well it looks good to me! Thanks for the contribution @zeevl!

Should be deployed as 1.2.14

Cheers, Ben

zeevl commented 3 years ago

Great, thanks for the quick turnaround (and module!) @benwinding !!