execute

The execute(commandName, value) function executes an editor command.

A list of all commands can be seen here. Note that command support is different across browsers.

<textarea id="editor"></textarea>

<script type="text/javascript">
    jQuery(function ($) {
        $('#editor').shieldEditor();

        // execute the undo command
        $("#editor").swidget().execute("undo");
    });
</script>