Click-to-Edit and Air toolbar

This example shows how to set up the Click-to-Edit mode with Air Toolbar.

Code

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

<!-- call -->
<script>
$R('#content', {
    air: true,
    clickToEdit: true,
    clickToSave: { title: 'Save' },
    clickToCancel: { title: 'Cancel' },
    callbacks: {
        clickSave: function(html)
        {
            // send html to your server
        },
        clickCancel: function(html)
        {
            // some canceling functionality
        }
    }
});
</script>