Documentation

Source with Codemirror

This example shows how to connect Codemirror to Article Editor.

<!DOCTYPE html>
<html>
<head>
    <title>Article Editor</title>
    <meta charset="utf-8">

    <!-- css -->
    <link rel="stylesheet" href="/your-folder/article-editor.min.css">

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

    <!-- js -->
    <script src="/your-folder/article-editor.min.js"></script>

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

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