Documentation / Events

Modal

modal.before.open #

Occurs before the modal is open.

Redactor('#entry', {
    subscribe: {
        'modal.before.open': function(event) {
            let modal = event.get('modal');
            let name = modal.getName();
        }
    }
});

modal.open #

Occurs when the modal is open.

Redactor('#entry', {
    subscribe: {
        'modal.open': function(event) {
            let modal = event.get('modal');
            let name = modal.getName();
        }
    }
});

modal.close #

Occurs when the modal is closed.

Redactor('#entry', {
    subscribe: {
        'modal.close': function() {
            ...
        }
    }
});