Documentation

Toolbar

sticky #

Type: Boolean

Default: true

By default, when scrolling the page, the toolbar becomes sticky at the top of the browser window. This can be disabled like this:

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

stickyTopOffset #

Type: Number

Default: 0

If you already have a sticky navigation on the page or another layer bound to the scroll, then you can change the position of the editor toolbar using this setting. The setting value is specified in pixels.

ArticleEditor('#entry', {
    css: '/your-article-dist-path/',
    toolbar: {
        stickyTopOffset: 40
    }
});

stickyMinHeight #

Type: Number

Default: 200

This setting allows you to specify the minimum height of the editor at which the sticky toolbar is activated.

ArticleEditor('#entry', {
    css: '/your-article-dist-path/',
    toolbar: {
        stickyMinHeight: 300 // pixels
    }
});

disable #

You can turn off the toolbar completely, just set false.

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