How to add undo/redo buttons

This example shows how to add Undo and Redo buttons to the right toolbar (extrabar) of the editor.

Code

<!-- element -->
<textarea id="entry">...</textarea>

<!-- call -->
<script>
let app = Redactor('#entry', {
    buttons: {
        extrabar: ['undo', 'redo', 'hotkeys']
    }
});
</script>