This example shows how to add undo and redo buttons to the toolbar.
<!--element -->
<textarea id="content"></textarea>
<!-- call -->
<script>
$R('#content', {
buttonsAddBefore: {
before: 'format',
buttons: ['undo', 'redo']
}
});
</script>