New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I bind a new event "removeMedia" with the delete button? #605
Comments
+1 |
+1 |
Only if image is added, it can use onMediaDelete event. $(".summernote").summernote({
onMediaDelete : function($target, editor, $editable) {
console.log($target[0].src); // img
// remove element in editor
$target.remove();
}
}); Video do not implements about onMediaDelete event yet |
Hi @easylogic! |
Thank you!! |
Never get the onMediaDelete fired, anyone did it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Whenever we initiate a media (image/video) in the content area, upon selection of that media a popover action menu appears including a delete button which upon click removes the media from the content area but that does not suffice a lot of real application needs. So how about an api / event say "removeMedia" which developer can override to do whatever he wants upon media removal?
The text was updated successfully, but these errors were encountered: