Destroy instance

This example shows how to use API for destroying Redactor's instance and initialize it again.

    Demo


    Code

    <!-- api buttons -->
    <button onclick="$R('#content', 'destroy');">Destroy</button>
    <button onclick="$R('#content');">Init</button>
    
    <!-- element -->
    <textarea id="content"></textarea>
    
    <!-- call -->
    <script>
    $R('#content');
    </script>