UNPKG

4.68 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 */
5import type { TableConfig, Table, TableCaption, TableCaptionEditing, TableCaptionUI, TableCellProperties, TableCellPropertiesEditing, TableCellPropertiesUI, TableCellWidthEditing, TableClipboard, TableColumnResize, TableColumnResizeEditing, TableEditing, TableKeyboard, TableMouse, TableProperties, TablePropertiesEditing, TablePropertiesUI, TableSelection, TableToolbar, TableUI, TableUtils, PlainTableOutput, InsertColumnCommand, InsertRowCommand, InsertTableCommand, MergeCellCommand, MergeCellsCommand, RemoveColumnCommand, RemoveRowCommand, SelectColumnCommand, SelectRowCommand, SetHeaderColumnCommand, SetHeaderRowCommand, SplitCellCommand, ToggleTableCaptionCommand, TableCellBackgroundColorCommand, TableCellBorderColorCommand, TableCellBorderStyleCommand, TableCellBorderWidthCommand, TableCellHeightCommand, TableCellHorizontalAlignmentCommand, TableCellPaddingCommand, TableCellVerticalAlignmentCommand, TableCellWidthCommand, TableAlignmentCommand, TableBackgroundColorCommand, TableBorderColorCommand, TableBorderStyleCommand, TableBorderWidthCommand, TableHeightCommand, TableWidthCommand } from './index';
6declare module '@ckeditor/ckeditor5-core' {
7 interface EditorConfig {
8 /**
9 * The configuration of the {@link module:table/table~Table} feature.
10 *
11 * Read more in {@link module:table/tableconfig~TableConfig}.
12 */
13 table?: TableConfig;
14 }
15 interface PluginsMap {
16 [Table.pluginName]: Table;
17 [TableCaption.pluginName]: TableCaption;
18 [TableCaptionEditing.pluginName]: TableCaptionEditing;
19 [TableCaptionUI.pluginName]: TableCaptionUI;
20 [TableCellProperties.pluginName]: TableCellProperties;
21 [TableCellPropertiesEditing.pluginName]: TableCellPropertiesEditing;
22 [TableCellPropertiesUI.pluginName]: TableCellPropertiesUI;
23 [TableCellWidthEditing.pluginName]: TableCellWidthEditing;
24 [TableClipboard.pluginName]: TableClipboard;
25 [TableColumnResize.pluginName]: TableColumnResize;
26 [TableColumnResizeEditing.pluginName]: TableColumnResizeEditing;
27 [TableEditing.pluginName]: TableEditing;
28 [TableKeyboard.pluginName]: TableKeyboard;
29 [TableMouse.pluginName]: TableMouse;
30 [TableProperties.pluginName]: TableProperties;
31 [TablePropertiesEditing.pluginName]: TablePropertiesEditing;
32 [TablePropertiesUI.pluginName]: TablePropertiesUI;
33 [TableSelection.pluginName]: TableSelection;
34 [TableToolbar.pluginName]: TableToolbar;
35 [TableUI.pluginName]: TableUI;
36 [TableUtils.pluginName]: TableUtils;
37 [PlainTableOutput.pluginName]: PlainTableOutput;
38 }
39 interface CommandsMap {
40 insertTableColumnLeft: InsertColumnCommand;
41 insertTableColumnRight: InsertColumnCommand;
42 insertTableRowAbove: InsertRowCommand;
43 insertTableRowBelow: InsertRowCommand;
44 insertTable: InsertTableCommand;
45 mergeTableCellRight: MergeCellCommand;
46 mergeTableCellLeft: MergeCellCommand;
47 mergeTableCellDown: MergeCellCommand;
48 mergeTableCellUp: MergeCellCommand;
49 mergeTableCells: MergeCellsCommand;
50 removeTableColumn: RemoveColumnCommand;
51 removeTableRow: RemoveRowCommand;
52 selectTableColumn: SelectColumnCommand;
53 selectTableRow: SelectRowCommand;
54 setTableColumnHeader: SetHeaderColumnCommand;
55 setTableRowHeader: SetHeaderRowCommand;
56 splitTableCellVertically: SplitCellCommand;
57 splitTableCellHorizontally: SplitCellCommand;
58 toggleTableCaption: ToggleTableCaptionCommand;
59 tableCellBackgroundColor: TableCellBackgroundColorCommand;
60 tableCellBorderColor: TableCellBorderColorCommand;
61 tableCellBorderStyle: TableCellBorderStyleCommand;
62 tableCellBorderWidth: TableCellBorderWidthCommand;
63 tableCellHeight: TableCellHeightCommand;
64 tableCellHorizontalAlignment: TableCellHorizontalAlignmentCommand;
65 tableCellPadding: TableCellPaddingCommand;
66 tableCellVerticalAlignment: TableCellVerticalAlignmentCommand;
67 tableCellWidth: TableCellWidthCommand;
68 tableAlignment: TableAlignmentCommand;
69 tableBackgroundColor: TableBackgroundColorCommand;
70 tableBorderColor: TableBorderColorCommand;
71 tableBorderStyle: TableBorderStyleCommand;
72 tableBorderWidth: TableBorderWidthCommand;
73 tableHeight: TableHeightCommand;
74 tableWidth: TableWidthCommand;
75 }
76}