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

  • toolbar : Array.<String>

    Items to be placed in the table toolbar. This option is used by the TableToolbar feature.

    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 = {
        toolbar: [ 'tableRow', 'tableColumn', 'mergeTableCells' ]
    };

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

    Read more about configuring toolbar in toolbar.