I am using the really nice Summernote Editor for a little webapp. Instead of using the default inline base64 code for images I am storing the images in a folder.
I
You must use "callbacks: {}" method. like this:
$('.summernote').summernote({ height: 500, tabsize: 4, callbacks: { onImageUpload: function(files, editor, $editable) { console.log('onImageUpload'); sendFile(files[0],editor,$editable); } }});