Source with Codemirror

This example shows how to connect Codemirror to Redactor. Click the source button on the toolbar to see the code.

Code

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

<!-- call -->
<script>
let app = Redactor('#entry', {
    codemirror: {
        lineNumbers: true
    }
});
</script>