Start and stop

This example shows how to use API for stopping and starting Redactor.

    Demo


    Code

    <!-- api buttons -->
    <button onclick="stopEditor();">Stop</button>
    <button onclick="startEditor();">Start</button>
    
    <!-- element -->
    <textarea id="entry"></textarea>
    
    <!-- call -->
    <script>
    var app = RedactorX('#entry');
    
    function stopEditor() {
        app.stop();
    }
    
    function startEditor() {
        app.start();
    }
    </script>