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

This is an optimization! Can you add a parameter for the original image in the compression end method? #48

Open XiangShuUncle opened 8 months ago

XiangShuUncle commented 8 months ago

this.insertToEditor(base64ImageSmallSrc, imageCompressor.b64toBlob(base64ImageSmallSrc), file); insertToEditor(url: string, blob: Blob,originalImageFile) this.options.insertIntoEditor(url, blob, this.quill,originalImageFile);