Noneditable

This example shows how to make a section of content non-editable. Just add noneditable class to a tag or wrap some tags with this class.

Code

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

    <!-- css -->
    <link rel="stylesheet" href="/your-article-dist-path/article-editor.min.css" />
</head>
<body>
    <!-- element -->
    <textarea id="entry">
        <h2>...</h2>
        <div class="noneditable">
            <p>Content</p>
        </div>
    </textarea>

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

    <!-- call -->
    <script>
    ArticleEditor('#entry', {
        css: '/your-article-dist-path/'
    });
    </script>
</body>
</html>