Article #5

    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">
            <p>Content</p>
        </textarea>
    
        <!-- js -->
        <script src="/your-article-dist-path/article-editor.min.js"></script>
        <script src="/your-article-dist-path/plugins/style.min.js"></script>
    
        <!-- call -->
        <script>
        ArticleEditor('#entry', {
            plugins: ['style'],
            css: ['/article-dist/arx-frame.min.css'],
            custom: {
                css: [
                    'https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,700;1,400;1,700&display=swap',
                    '/path-to/content.css'
                ]
            },
            classes: {
                blocks: {
                    'quote': 'quote outset-both'
                }
            },
            styles: {
                paragraph: {
                    'lead': {
                        title: 'Lead',
                        classname: 'lead'
                    },
                    'lead-outset': {
                        title: 'Lead + Outset',
                        classname: 'lead lead-outset outset-both'
                    }
                },
                image: {
                    'centered': {
                        title: 'Centered',
                        classname: 'image-centered'
                    },
                    'image-column': {
                        title: 'Image Column',
                        classname: 'image-column'
                    }
    
                }
            },
            image: {
                upload: '/upload-server-side-script/',
                select: '/path-to-images.json'
            }
        });
        </script>
    </body>
    </html>