Catch events

This example show how to catch the editor's events with the subscribe object in settings. See the browser console for the result.

Code

<!-- element -->
<textarea id="entry">...</textarea>

<!-- call -->
<script>
let app = Redactor('#entry', {
    subscribe: {
        'app.start': function() {
            console.log('Redactor is started!');
        }
    }
});
</script>