fires before an action is added into the undo stack
boolean onBeforeUndoStack(array action);
| action||array||a user action as an array of command objects|
|boolean||defines whether the default action of the event will be triggered (true) or canceled (false)|
// your code here
This event is defined in the undo extension, so you need to enable the undo plugin. Read the details in the Undo/Redo Functionality article.
- The event is blockable, returning false will cancel further processing.
- If the event is blocked, the undo won't capture actions from event arguments.
- Event actions can be modified.
added in version 5.2
Back to top