Undo-Redo
What is Undo-Redo?
Undo-Redo is a simple library that allows you to customize the behavior of the standard undo and redo key operations (Cmd+Z
and Cmd+Shift+Z
).
How does it work?
Setup an environment for your undo-redo stack with the make() function
js
undoRedoStack;
Create an element that has undo and redo attributes that specify what happens when Cmd+Z
and Cmd+Shift+Z
are pressed.
js
//an example objectvar obj = { documentbody; return true; } { documentbody; return true; };
Add this element to your undo-redo stack with the addUndoObject() function
js
undoRedoStack;
Run Demo Undo-Redo Application
Run iqb start
in the root directory to run a demo application with Undo-Redo.