Source with Codemirror

This example shows how to connect Codemirror to Redactor X.

Code

<!DOCTYPE html>
<html>
<head>
    <title>Redactor X</title>
    <meta charset="utf-8">

    <!-- css -->
    <link rel="stylesheet" href="/your-dist-path/redactorx.min.css">

    <!-- codemirror css -->
    <link rel="stylesheet" href="/dist/codemirror/codemirror.css">
</head>
<body>
    <!-- element -->
    <textarea id="entry">
        <p>Content</p>
    </textarea>

    <!-- codemirror js -->
    <script src="/dist/codemirror/codemirror.min.js"></script>

    <!-- js -->
    <script src="/your-dist-path/redactorx.min.js"></script>

    <!-- call -->
    <script>
    RedactorX('#entry', {
        codemirror: {
            lineNumbers: true
        }
    });
    </script>
</body>
</html>