This example shows how to connect Codemirror to Redactor. Click the source button on the toolbar to see the code.
<!-- element -->
<textarea id="entry">...</textarea>
<!-- call -->
<script>
let app = Redactor('#entry', {
codemirror: {
lineNumbers: true
}
});
</script>