update

Synchronizes the value of an underlying textarea element with that of the editable area.

NOTE: This is required only on manual changes of the editable content, through its document.

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

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

        var editor = $('#editor').swidget();

        // empty the editable content
        $(editor.getDoc().body).html("");

        // propagate the update to the underlying element
        editor.update();
    });
</script>