How to set custom event
current style
$(".summernote").summernote({
onfocus : function(e) {
// to do something
}
});
jquery style
$(".summernote").on("summernote.focus", function(e) {
// to do something
});
Event List
oninit
$(".summernote").on("summernote.init", ...);
onfocus
$(".summernote").on("summernote.focus", ...);
onenter
$(".summernote").on("summernote.enter", ...);
onblur
$(".summernote").on("summernote.blur", ...);
onkeyup
$(".summernote").on("summernote.keyup", ...);
onkeydown
$(".summernote").on("summernote.keydown", ...);
onChange
$(".summernote").on("summernote.change", ...);