Add undo and redo buttons

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

Code

<!--element -->
<textarea id="content"></textarea>

<!-- call -->
<script>
$R('#content', {
    buttonsAddBefore: {
        before: 'format',
        buttons: ['undo', 'redo']
    }
});
</script>