Codeview and dialog callbacks
These callbacks are wired to special UI surfaces rather than the editable area itself:
onChangeCodeview, onBlurCodeview, and onDialogShown.
Codeview callback target.
Callback log
Ready.
Example configuration - Codeview and Dialogs
summernote.create('#callbacks-codeview-editor', {
height: 220,
callbacks: {
onChangeCodeview(value, codable) {},
onBlurCodeview(value, event) {},
onDialogShown() {},
},
});
summernote.invoke('#callbacks-codeview-editor', 'codeview.toggle');
summernote.invoke('#callbacks-codeview-editor', 'helpDialog.show');