Documentation

Addbar

addbar

Type: Array

Default: array

The addbar setting helps to manage popup, which adds blocks to the editor.

By default, the addbar has the following button array:

'paragraph', 'image', 'embed', 'line', 'table', 'snippet',
'quote', 'code', 'grid', 'layer'

In addition, you can add these buttons to addbar by changing the array or using the addbarAdd setting:

'text', 'card'

You can change the addbar array and turn off some options for adding blocks, like this:

ArticleEditor('#entry', {
    css: '/your-article-dist-path/',
    addbar: ['paragraph', 'image', 'code']
}); 

Note that if the image uploading, embed/code insertion and some other features is disabled, the corresponding addbar buttons are automatically hidden.

You can completely disable the addbar, for this set the setting to false.

ArticleEditor('#entry', {
    css: '/your-article-dist-path/',
    addbar: false
});

addbarAdd

Type: Array

This setting allows you to add additional buttons to addbar.

ArticleEditor('#entry', {
    css: '/your-article-dist-path/',
    addbarAdd: ['card']
});

addbarHide

Type: Array

This setting allows you to hide buttons from addbar.

ArticleEditor('#entry', {
    css: '/your-article-dist-path/',
    addbarHide: ['code', 'grid']
});