Add undo and redo buttons

This example shows how to add undo and redo buttons to the toolbar.