react-summernote icon indicating copy to clipboard operation
react-summernote copied to clipboard

How can I bind a new event "removeMedia" with the delete button?

Open GJ2511 opened this issue 10 years ago • 3 comments

How Can I know that media added on summernote has been removed? (from delete button which we get when we click over the image OR when we press backspace)

GJ2511 avatar Aug 31 '16 09:08 GJ2511

Try using the onChange event and compare the contents

dodo360 avatar Aug 31 '16 11:08 dodo360

Are you serious you want me to find out from HTML string?

What if I have many Images at one time, then how would I know which image is deleted?

GJ2511 avatar Aug 31 '16 11:08 GJ2511

Well, summernote doesn't have such event, you might want to look at this

You're always free to create an issue in the main Summernote repository

dodo360 avatar Aug 31 '16 11:08 dodo360