This example shows how to add undo and redo buttons to the extrabar.
<div id="entry-undo-redo-extrabar"></div>
const app = Redactor('#entry-undo-redo-extrabar', { buttons: { extrabar: ['undo', 'redo', 'hotkeys'] } });