Occurs before the modal is open.
Redactor('#entry', {
subscribe: {
'modal.before.open': function(event) {
let modal = event.get('modal');
let name = modal.getName();
}
}
});
Occurs when the modal is open.
Redactor('#entry', {
subscribe: {
'modal.open': function(event) {
let modal = event.get('modal');
let name = modal.getName();
}
}
});
Occurs when the modal is closed.
Redactor('#entry', {
subscribe: {
'modal.close': function() {
...
}
}
});