@ckeditor/ckeditor5-table 48.2.0 → 48.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/augmentation.d.ts +80 -80
- package/dist/commands/insertcolumncommand.d.ts +50 -50
- package/dist/commands/insertrowcommand.d.ts +49 -49
- package/dist/commands/inserttablecommand.d.ts +43 -43
- package/dist/commands/inserttablelayoutcommand.d.ts +34 -34
- package/dist/commands/mergecellcommand.d.ts +63 -63
- package/dist/commands/mergecellscommand.d.ts +24 -24
- package/dist/commands/removecolumncommand.d.ts +24 -24
- package/dist/commands/removerowcommand.d.ts +24 -24
- package/dist/commands/selectcolumncommand.d.ts +28 -28
- package/dist/commands/selectrowcommand.d.ts +28 -28
- package/dist/commands/setfooterrowcommand.d.ts +48 -48
- package/dist/commands/setheadercolumncommand.d.ts +45 -45
- package/dist/commands/setheaderrowcommand.d.ts +48 -48
- package/dist/commands/splitcellcommand.d.ts +38 -38
- package/dist/converters/downcast.d.ts +77 -77
- package/dist/converters/table-caption-post-fixer.d.ts +18 -18
- package/dist/converters/table-cell-paragraph-post-fixer.d.ts +30 -30
- package/dist/converters/table-cell-refresh-handler.d.ts +16 -16
- package/dist/converters/table-layout-post-fixer.d.ts +224 -224
- package/dist/converters/table-structure-post-fixer.d.ts +16 -16
- package/dist/converters/table-structure-refresh-handler.d.ts +15 -15
- package/dist/converters/tableproperties.d.ts +98 -98
- package/dist/converters/upcasttable.d.ts +47 -47
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +98 -98
- package/dist/index.js +12835 -14503
- package/dist/index.js.map +1 -1
- package/dist/plaintableoutput.d.ts +28 -28
- package/dist/table.d.ts +39 -39
- package/dist/tablecaption/tablecaptionediting.d.ts +62 -62
- package/dist/tablecaption/tablecaptionui.d.ts +18 -18
- package/dist/tablecaption/toggletablecaptioncommand.d.ts +61 -61
- package/dist/tablecaption/utils.d.ts +31 -31
- package/dist/tablecaption.d.ts +23 -23
- package/dist/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +27 -27
- package/dist/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +32 -32
- package/dist/tablecellproperties/commands/tablecellborderstylecommand.d.ts +32 -32
- package/dist/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +46 -46
- package/dist/tablecellproperties/commands/tablecellheightcommand.d.ts +41 -41
- package/dist/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +27 -27
- package/dist/tablecellproperties/commands/tablecellpaddingcommand.d.ts +46 -46
- package/dist/tablecellproperties/commands/tablecellpropertycommand.d.ts +79 -79
- package/dist/tablecellproperties/commands/tablecelltypecommand.d.ts +42 -42
- package/dist/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +35 -35
- package/dist/tablecellproperties/tablecellpropertiesediting.d.ts +49 -49
- package/dist/tablecellproperties/tablecellpropertiesui.d.ts +123 -123
- package/dist/tablecellproperties/tablecellpropertiesutils.d.ts +13 -13
- package/dist/tablecellproperties/ui/tablecellpropertiesview.d.ts +257 -257
- package/dist/tablecellproperties.d.ts +29 -29
- package/dist/tablecellwidth/commands/tablecellwidthcommand.d.ts +41 -41
- package/dist/tablecellwidth/tablecellwidthediting.d.ts +28 -28
- package/dist/tableclipboard.d.ts +79 -79
- package/dist/tablecolumnresize/constants.d.ts +23 -23
- package/dist/tablecolumnresize/converters.d.ts +20 -20
- package/dist/tablecolumnresize/tablecolumnresizeediting.d.ts +184 -184
- package/dist/tablecolumnresize/tablewidthscommand.d.ts +31 -31
- package/dist/tablecolumnresize/utils.d.ts +127 -127
- package/dist/tablecolumnresize.d.ts +25 -25
- package/dist/tableconfig.d.ts +670 -670
- package/dist/tableediting.d.ts +99 -99
- package/dist/tablekeyboard.d.ts +67 -67
- package/dist/tablelayout/commands/tabletypecommand.d.ts +38 -38
- package/dist/tablelayout/tablelayoutediting.d.ts +58 -58
- package/dist/tablelayout/tablelayoutui.d.ts +27 -27
- package/dist/tablelayout.d.ts +25 -25
- package/dist/tablemouse/mouseeventsobserver.d.ts +54 -54
- package/dist/tablemouse.d.ts +47 -47
- package/dist/tableproperties/commands/tablealignmentcommand.d.ts +27 -27
- package/dist/tableproperties/commands/tablebackgroundcolorcommand.d.ts +27 -27
- package/dist/tableproperties/commands/tablebordercolorcommand.d.ts +32 -32
- package/dist/tableproperties/commands/tableborderstylecommand.d.ts +32 -32
- package/dist/tableproperties/commands/tableborderwidthcommand.d.ts +46 -46
- package/dist/tableproperties/commands/tableheightcommand.d.ts +41 -41
- package/dist/tableproperties/commands/tablepropertycommand.d.ts +64 -64
- package/dist/tableproperties/commands/tablewidthcommand.d.ts +41 -41
- package/dist/tableproperties/tablepropertiesediting.d.ts +48 -48
- package/dist/tableproperties/tablepropertiesui.d.ts +131 -131
- package/dist/tableproperties/ui/tablepropertiesview.d.ts +207 -207
- package/dist/tableproperties.d.ts +29 -29
- package/dist/tableselection.d.ts +106 -106
- package/dist/tabletoolbar.d.ts +31 -31
- package/dist/tableui.d.ts +53 -53
- package/dist/tableutils.d.ts +532 -532
- package/dist/tablewalker.d.ts +342 -350
- package/dist/ui/colorinputview.d.ts +137 -137
- package/dist/ui/inserttableview.d.ts +78 -78
- package/dist/utils/common.d.ts +58 -58
- package/dist/utils/structure.d.ts +229 -229
- package/dist/utils/table-properties.d.ts +92 -92
- package/dist/utils/ui/contextualballoon.d.ts +28 -28
- package/dist/utils/ui/table-properties.d.ts +195 -192
- package/dist/utils/ui/widget.d.ts +22 -22
- package/package.json +9 -9
package/dist/tableediting.d.ts
CHANGED
|
@@ -1,107 +1,107 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin, type Editor } from
|
|
9
|
-
import type { ModelPositionOffset, DowncastSlotFilter } from
|
|
10
|
-
import { TableUtils } from
|
|
11
|
-
import
|
|
6
|
+
* @module table/tableediting
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import type { ModelPositionOffset, DowncastSlotFilter } from "@ckeditor/ckeditor5-engine";
|
|
10
|
+
import { TableUtils } from "./tableutils.js";
|
|
11
|
+
import "../theme/tableediting.css";
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
* The table editing feature.
|
|
14
|
+
*/
|
|
15
15
|
export declare class TableEditing extends Plugin {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Handlers for creating additional slots in the table.
|
|
18
|
+
*/
|
|
19
|
+
private _additionalSlots;
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get pluginName(): "TableEditing";
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static override get isOfficialPlugin(): true;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static get requires(): PluginDependenciesOf<[TableUtils]>;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
constructor(editor: Editor);
|
|
36
|
+
/**
|
|
37
|
+
* @inheritDoc
|
|
38
|
+
*/
|
|
39
|
+
init(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Registers downcast handler for the additional table slot.
|
|
42
|
+
*/
|
|
43
|
+
registerAdditionalSlot(slotHandler: TableConversionAdditionalSlot): void;
|
|
44
|
+
/**
|
|
45
|
+
* Adds converters for plain table output. These converters are used either when the `PlainTableOutput` plugin is loaded
|
|
46
|
+
* or when content is processed by the clipboard pipeline, ensuring that pasted tables are not wrapped in a <figure> element.
|
|
47
|
+
*/
|
|
48
|
+
private _addPlainTableOutputConverters;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
51
|
+
* By default, only the `tableRow` elements from the `table` model are downcast inside the `<table>` and
|
|
52
|
+
* all other elements are pushed outside the table. This handler allows creating additional slots inside
|
|
53
|
+
* the table for other elements.
|
|
54
|
+
*
|
|
55
|
+
* Take this model as an example:
|
|
56
|
+
*
|
|
57
|
+
* ```xml
|
|
58
|
+
* <table>
|
|
59
|
+
* <tableRow>...</tableRow>
|
|
60
|
+
* <tableRow>...</tableRow>
|
|
61
|
+
* <tableColumnGroup>...</tableColumnGroup>
|
|
62
|
+
* </table>
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* By default, downcasting result will be:
|
|
66
|
+
*
|
|
67
|
+
* ```xml
|
|
68
|
+
* <table>
|
|
69
|
+
* <tbody>
|
|
70
|
+
* <tr>...</tr>
|
|
71
|
+
* <tr>...</tr>
|
|
72
|
+
* </tbody>
|
|
73
|
+
* </table>
|
|
74
|
+
* <colgroup>...</colgroup>
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* To allow the `tableColumnGroup` element at the end of the table, use the following configuration:
|
|
78
|
+
*
|
|
79
|
+
* ```ts
|
|
80
|
+
* const additionalSlot = {
|
|
81
|
+
* filter: element => element.is( 'element', 'tableColumnGroup' ),
|
|
82
|
+
* positionOffset: 'end'
|
|
83
|
+
* }
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
86
|
+
* Now, the downcast result will be:
|
|
87
|
+
*
|
|
88
|
+
* ```xml
|
|
89
|
+
* <table>
|
|
90
|
+
* <tbody>
|
|
91
|
+
* <tr>...</tr>
|
|
92
|
+
* <tr>...</tr>
|
|
93
|
+
* </tbody>
|
|
94
|
+
* <colgroup>...</colgroup>
|
|
95
|
+
* </table>
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
98
|
export interface TableConversionAdditionalSlot {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
/**
|
|
100
|
+
* Filter for elements that should be placed inside given slot.
|
|
101
|
+
*/
|
|
102
|
+
filter: DowncastSlotFilter;
|
|
103
|
+
/**
|
|
104
|
+
* Position of the slot within the table.
|
|
105
|
+
*/
|
|
106
|
+
positionOffset: ModelPositionOffset;
|
|
107
107
|
}
|
package/dist/tablekeyboard.d.ts
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { TableSelection } from
|
|
9
|
-
import { TableUtils } from
|
|
10
|
-
import { Plugin } from
|
|
11
|
-
import { type ArrowKeyCodeDirection } from
|
|
12
|
-
import type { ModelElement } from
|
|
6
|
+
* @module table/tablekeyboard
|
|
7
|
+
*/
|
|
8
|
+
import { TableSelection } from "./tableselection.js";
|
|
9
|
+
import { TableUtils } from "./tableutils.js";
|
|
10
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
11
|
+
import { type ArrowKeyCodeDirection } from "@ckeditor/ckeditor5-utils";
|
|
12
|
+
import type { ModelElement } from "@ckeditor/ckeditor5-engine";
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
* This plugin enables keyboard navigation for tables.
|
|
15
|
+
* It is loaded automatically by the {@link module:table/table~Table} plugin.
|
|
16
|
+
*/
|
|
17
17
|
export declare class TableKeyboard extends Plugin {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "TableKeyboard";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static override get isOfficialPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get requires(): PluginDependenciesOf<[TableSelection, TableUtils]>;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
init(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Handles {@link module:engine/view/document~ViewDocument#event:tab tab} events for the <kbd>Tab</kbd> key executed
|
|
36
|
+
* when the table widget is selected.
|
|
37
|
+
*/
|
|
38
|
+
private _handleTabOnSelectedTable;
|
|
39
|
+
/**
|
|
40
|
+
* Handles {@link module:engine/view/document~ViewDocument#event:tab tab} events for the <kbd>Tab</kbd> key executed
|
|
41
|
+
* inside table cells.
|
|
42
|
+
*/
|
|
43
|
+
private _handleTab;
|
|
44
|
+
/**
|
|
45
|
+
* Handles {@link module:engine/view/document~ViewDocument#event:keydown keydown} events.
|
|
46
|
+
*/
|
|
47
|
+
private _onArrowKey;
|
|
48
|
+
/**
|
|
49
|
+
* Handles arrow keys to move the selection around the table.
|
|
50
|
+
*
|
|
51
|
+
* @param direction The direction of the arrow key.
|
|
52
|
+
* @param expandSelection If the current selection should be expanded.
|
|
53
|
+
* @returns Returns `true` if key was handled.
|
|
54
|
+
*/
|
|
55
|
+
private _handleArrowKeys;
|
|
56
|
+
/**
|
|
57
|
+
* Returns `true` if the selection is at the boundary of a table cell according to the navigation direction.
|
|
58
|
+
*
|
|
59
|
+
* @param selection The current selection.
|
|
60
|
+
* @param tableCell The current table cell element.
|
|
61
|
+
* @param isForward The expected navigation direction.
|
|
62
|
+
*/
|
|
63
|
+
private _isSelectionAtCellEdge;
|
|
64
|
+
/**
|
|
65
|
+
* Moves the selection from the given table cell in the specified direction.
|
|
66
|
+
*
|
|
67
|
+
* @param focusCell The table cell that is current multi-cell selection focus.
|
|
68
|
+
* @param direction Direction in which selection should move.
|
|
69
|
+
* @param expandSelection If the current selection should be expanded. Default value is false.
|
|
70
|
+
*/
|
|
71
|
+
protected _navigateFromCellInDirection(focusCell: ModelElement, direction: ArrowKeyCodeDirection, expandSelection?: boolean): void;
|
|
72
72
|
}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Command } from
|
|
9
|
-
import type { TableType } from
|
|
6
|
+
* @module table/tablelayout/commands/tabletypecommand
|
|
7
|
+
*/
|
|
8
|
+
import { Command } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import type { TableType } from "../../tableconfig.js";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
* The set table type command.
|
|
12
|
+
*
|
|
13
|
+
* The command is registered by {@link module:table/tablelayout/tablelayoutediting~TableLayoutEditing}
|
|
14
|
+
* as the `'tableType'` editor command.
|
|
15
|
+
*
|
|
16
|
+
* To set the table type at the current selection, execute the command and specify the table type:
|
|
17
|
+
*
|
|
18
|
+
* ```ts
|
|
19
|
+
* editor.execute( 'tableType', 'layout' );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
22
|
export declare class TableTypeCommand extends Command {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
23
|
+
/**
|
|
24
|
+
* The table type of selected table.
|
|
25
|
+
*
|
|
26
|
+
* @observable
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
value: TableType | null;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
override refresh(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Executes the command.
|
|
36
|
+
*
|
|
37
|
+
* Set table type by the given table type parameter.
|
|
38
|
+
*
|
|
39
|
+
* @param tableType The type of table it should become.
|
|
40
|
+
* @fires execute
|
|
41
|
+
*/
|
|
42
|
+
override execute(tableType: TableType): void;
|
|
43
43
|
}
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
9
|
-
import { TableColumnResize } from
|
|
10
|
-
import
|
|
6
|
+
* @module table/tablelayout/tablelayoutediting
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { TableColumnResize } from "../tablecolumnresize.js";
|
|
10
|
+
import "../../theme/tablelayout.css";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
* The table layout editing plugin.
|
|
13
|
+
*/
|
|
14
14
|
export declare class TableLayoutEditing extends Plugin {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
static get pluginName(): "TableLayoutEditing";
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
static get licenseFeatureCode(): string;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static get requires(): PluginDependenciesOf<[TableColumnResize]>;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static override get isOfficialPlugin(): true;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
static override get isPremiumPlugin(): true;
|
|
36
|
+
/**
|
|
37
|
+
* @inheritDoc
|
|
38
|
+
*/
|
|
39
|
+
init(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Defines the schema for the table layout feature.
|
|
42
|
+
*/
|
|
43
|
+
private _defineSchema;
|
|
44
|
+
/**
|
|
45
|
+
* Defines the converters for the table layout feature.
|
|
46
|
+
*/
|
|
47
|
+
private _defineConverters;
|
|
48
|
+
/**
|
|
49
|
+
* Handles the clipboard content insertion events.
|
|
50
|
+
*
|
|
51
|
+
* - If the content is from another editor, do not override the table type.
|
|
52
|
+
* - If the content is from another source, set the table type to 'content'.
|
|
53
|
+
*
|
|
54
|
+
* It handles the scenario when user copies `<table></table>` from Word. We do not want to
|
|
55
|
+
* change the table type to `layout` because it is really `content` table.
|
|
56
|
+
*/
|
|
57
|
+
private _defineClipboardPasteHandlers;
|
|
58
|
+
/**
|
|
59
|
+
* Registers a post-fixer that sets the `tableType` attribute to `content` for inserted "default" tables.
|
|
60
|
+
* Also fixes potential issues with the table structure when the `tableType` attribute has been changed.
|
|
61
|
+
*/
|
|
62
|
+
private _registerTableTypeAttributePostfixer;
|
|
63
63
|
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
6
|
+
* @module table/tablelayout/tablelayoutui
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
* The table layout UI plugin. It introduces:
|
|
11
|
+
*
|
|
12
|
+
* * The `'insertTableLayout'` dropdown,
|
|
13
|
+
* * The `'menuBar:insertTableLayout'` menu bar menu.
|
|
14
|
+
*/
|
|
15
15
|
export declare class TableLayoutUI extends Plugin {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
static get pluginName(): "TableLayoutUI";
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static override get isOfficialPlugin(): true;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
init(): void;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
afterInit(): void;
|
|
32
32
|
}
|