Start and stop

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


Code

<!-- api buttons -->
<button onclick="$R('#content', 'stop');">Stop</button>
<button onclick="$R('#content', 'start');">Start</button>

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

<!-- call -->
<script>
$R('#content');
</script>