Multiple editors

This example shows how to call Article Editor for multiple textarea elements. Just specify the class or another group selector when you initializing it.


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

    <!-- css -->
    <link rel="stylesheet" href="/your-article-dist-path/article-editor.min.css" />
    <!-- element 1 -->
    <textarea id="entry-1" class="entry">

    <!-- element 2 -->
    <textarea id="entry-2" class="entry">

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

    <!-- call -->
    ArticleEditor('.entry', {
        css: '/your-article-dist-path/'

    // get all running editors as an array