state.undo

Arguments
html StringHTML from the undo state
offset ObjectCursor position in HTML from the undo state

Occurs whenever user presses ctrl/cmd+z or the undo button or a plugin calls the state.undo command using the API.

RedactorX('#entry', {
    subscribe: {
        'state.undo': function(event) {
            ...
        }
    }
});

state.redo

Arguments
html StringHTML from the redo state
offset ObjectCursor position in HTML from the redo state

Occurs whenever user presses ctrl/cmd+shift+z or the redo button or a plugin calls the state.redo command using the API.

RedactorX('#entry', {
    subscribe: {
        'state.redo': function(event) {
            ...
        }
    }
});