popup.before.open

Occurs before the popup is open.

RedactorX('#entry', {
    subscribe: {
        'popup.before.open': function() {
            var name = this.app.popup.getName();
            ...
        }
    }
});

popup.open

Occurs when the popup is open.

RedactorX('#entry', {
    subscribe: {
        'popup.open': function() {
            var name = this.app.popup.getName();
            ...
        }
    }
});

popup.close

Occurs when the popup is closed.

RedactorX('#entry', {
    subscribe: {
        'popup.close': function() {
            var name = this.app.popup.getName();
            ...
        }
    }
});