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
243 stars 98 forks source link

add an callback function after calling this.quill.insertEmbed() #98

Open invincibleyolk opened 11 months ago

invincibleyolk commented 11 months ago

Hi there, The module you wrote looks really really nice! I'm just wondering if it's possible to add a callback function that allows us to customize the behavior right after inserting the image(after this line: this.quill.insertEmbed()), since the editor on our platform has a default format requirement for the images that inserted. It would be really convenient if there's an optional callback function there, or else I need to implement the whole module all by self 😢 Or add an option to allows customizing the inserting event function works for me too~ Still a newbie to the community, pardon me if my english is not good. Cheers!