Start with settings

This example shows how to start Article Editor with settings. In this example, the source mode is disabled and the editor has a focus on the start.


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

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

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

    <!-- call with settings -->
    ArticleEditor('#entry', {
        css: '/your-article-dist-path/',
        source: false,
        editor: {
            focus: true