UNPKG

1.22 kBTypeScriptView Raw
1/**
2 * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4 */
5/**
6 * @module table/tabletoolbar
7 */
8import { Plugin } from 'ckeditor5/src/core';
9import { WidgetToolbarRepository } from 'ckeditor5/src/widget';
10/**
11 * The table toolbar class. It creates toolbars for the table feature and its content (for now only for the table cell content).
12 *
13 * The table toolbar shows up when a table widget is selected. Its components (e.g. buttons) are created based on the
14 * {@link module:table/tableconfig~TableConfig#tableToolbar `table.tableToolbar` configuration option}.
15 *
16 * Table content toolbar shows up when the selection is inside the content of a table. It creates its component based on the
17 * {@link module:table/tableconfig~TableConfig#contentToolbar `table.contentToolbar` configuration option}.
18 */
19export default class TableToolbar extends Plugin {
20 /**
21 * @inheritDoc
22 */
23 static get requires(): readonly [typeof WidgetToolbarRepository];
24 /**
25 * @inheritDoc
26 */
27 static get pluginName(): 'TableToolbar';
28 /**
29 * @inheritDoc
30 */
31 afterInit(): void;
32}