fxmontigny / quill-image-upload

A module for Quill rich text editor to upload images to be selected from toolbar editor.
107 stars 43 forks source link

how provide callback before send images? #1

Closed SecretKeeper closed 6 years ago

SecretKeeper commented 6 years ago

how can i use callbacks before sending image to server? i wanna build a confirmation by user before send images

thanks

fxmontigny commented 6 years ago

Hi,

Interesting. Actually you can't do this. A can add this option but not today sorry. Probably at the end of the week.

SecretKeeper commented 6 years ago

Nice , ok Ill wait end od week

Thanks

fxmontigny commented 6 years ago

Just for you. Release 0.1.2 https://github.com/fxmontigny/quill-image-upload/releases/tag/v0.1.2

// optional
            // add callback when a image have been chosen
            checkBeforeSend: (file, next) => {
                console.log(file);
                next(file); // go back to component and send to the server
            }