Documentation

Format

Type: Object

Default: object

By default, the following object is set in the formatting menu for blocks tags:

{
    "p": {
        title: '## format.normal-text ##',
        params: { tag: 'p', block: 'paragraph' }
    },
    "h1": {
        title: '<span style="font-size: 20px; font-weight: bold;">## format.large-heading ##</span>',
        params: { tag: 'h1', block: 'heading' }
    },
    "h2": {
        title: '<span style="font-size: 16px; font-weight: bold;">## format.medium-heading ##</span>',
        params: { tag: 'h2', block: 'heading' }
    },
    "h3": {
        title: '<span style="font-weight: bold;">## format.small-heading ##</span>',
        params: { tag: 'h3', block: 'heading' }
    },
    "ul": {
        title: '&bull; ## format.unordered-list ##',
        params: { tag: 'ul', block: 'list' }
    },
    "ol": {
        title: '1. ## format.ordered-list ##',
        params: { tag: 'ol', block: 'list' }
    }
}

You can disable some object values:

ArticleEditor('#entry', {
    format: {
        "p": {
            title: '## format.normal-text ##',
            params: { tag: 'p', block: 'paragraph' }
        },
        "h2": {
            title: '<span style="font-size: 16px; font-weight: bold;">## format.medium-heading ##</span>',
            params: { tag: 'h2', block: 'heading' }
        },
        "h1": false,
        "h3": false,
        "ul": false,
        "ol": false
    }
});