Documentation

Classes

Type: Object

Default: false

This setting allows you to automatically add CSS classes to the specified tags.

ArticleEditor('#entry', {
    css: '/your-article-dist-path/',
    custom: {
        css: ['/your-article-dist-path/custom-css-with-classes.css']
    },
    classes: {
        'p': 'my-paragraph',
        'h2': 'my-heading my-heading-another-class'
    }
});

In your custom-css-with-classes.css style file or in your style file for all content, specify the rules for these classes, for example:

.my-paragraph {}
.my-heading {}
.my-heading-another-class {}