Report an issue
Interface

TableConfig (table)

@ckeditor/ckeditor5-table/src/table

interface

The configuration of the table features. Used by the table features in the @ckeditor/ckeditor5-table package.

ClassicEditor
    .create( editorElement, {
        table: ... // Table feature options.
    } )
    .then( ... )
    .catch( ... );

See all editor options.

Filtering

Properties

  • contentToolbar : Array.<String>

    Items to be placed in the table content toolbar. The TableToolbar plugin is required to make this toolbar working.

    Assuming that you use the TableUI feature, the following toolbar items will be available in ComponentFactory:

    • 'tableRow',
    • 'tableColumn',
    • 'mergeTableCells'.

    You can thus configure the toolbar like this:

    const tableConfig = {
        contentToolbar: [ 'tableRow', 'tableColumn', 'mergeTableCells' ]
    };

    Of course, the same buttons can also be used in the main editor toolbar.

    Read more about configuring toolbar in toolbar.

  • tableToolbar : Array.<String>

    Items to be placed in the table toolbar. The TableToolbar plugin is required to make this toolbar working.

    You can thus configure the toolbar like this:

    const tableConfig = {
        tableToolbar: [ 'blockQuote' ]
    };

    Of course, the same buttons can also be used in the main editor toolbar.

    Read more about configuring toolbar in toolbar.

  • toolbar : Array.<String>

    Items to be placed in the table content toolbar.

    Note: This configuration option is deprecated! Use contentToolbar instead.

    Read more about configuring toolbar in toolbar.