Click-to-Edit mode

    Demo

    Code

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