@ckeditor/ckeditor5-table 48.8.1-alpha.4 → 49.0.0-alpha.1
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/LICENSE.md +1 -1
- package/ckeditor5-metadata.json +12 -1
- package/dist/augmentation.d.ts +83 -80
- package/dist/commands/insertcolumncommand.d.ts +50 -50
- package/dist/commands/insertrowcommand.d.ts +49 -49
- package/dist/commands/inserttablecommand.d.ts +48 -43
- package/dist/commands/inserttablelayoutcommand.d.ts +39 -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 +39 -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-content.css +116 -105
- package/dist/index-content.css.map +1 -0
- package/dist/index-editor.css +718 -601
- package/dist/index-editor.css.map +1 -0
- package/dist/index.css +781 -650
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +103 -98
- package/dist/index.js +13669 -14491
- package/dist/index.js.map +1 -1
- package/dist/plaintableoutput.d.ts +28 -28
- package/dist/table.d.ts +38 -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 +22 -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 +130 -123
- package/dist/tablecellproperties/tablecellpropertiesutils.d.ts +13 -13
- package/dist/tablecellproperties/ui/tablecellpropertiesview.d.ts +255 -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/commands/tablecolumnwidthcommand.d.ts +56 -0
- package/dist/tablecolumnresize/constants.d.ts +40 -25
- package/dist/tablecolumnresize/converters.d.ts +20 -20
- package/dist/tablecolumnresize/tablecolumnresizeediting.d.ts +263 -184
- package/dist/tablecolumnresize/tablewidthscommand.d.ts +31 -31
- package/dist/tablecolumnresize/utils.d.ts +166 -127
- package/dist/tablecolumnresize.d.ts +24 -25
- package/dist/tableconfig.d.ts +736 -670
- package/dist/tableediting.d.ts +98 -99
- package/dist/tablekeyboard.d.ts +67 -67
- package/dist/tablelayout/commands/tabletypecommand.d.ts +38 -38
- package/dist/tablelayout/tablelayoutediting.d.ts +57 -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 +210 -207
- package/dist/tableproperties.d.ts +29 -29
- package/dist/tablescroll/tablescrollediting.d.ts +91 -0
- package/dist/tablescroll/watchers.d.ts +29 -0
- package/dist/tablescroll.d.ts +23 -0
- package/dist/tableselection.d.ts +105 -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/translations/af.js +1 -1
- package/dist/translations/af.umd.js +5 -3
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +5 -3
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +5 -3
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +5 -3
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +5 -3
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +5 -3
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +5 -3
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +5 -3
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +5 -3
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +5 -3
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +5 -3
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +5 -3
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +5 -3
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +5 -3
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +5 -3
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +5 -3
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +5 -3
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +5 -3
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +5 -3
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +5 -3
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +5 -3
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +5 -3
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +5 -3
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +5 -3
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +5 -3
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +5 -3
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +5 -3
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +5 -3
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +5 -3
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +5 -3
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +5 -3
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +5 -3
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +5 -3
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +5 -3
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +5 -3
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +5 -3
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +5 -3
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +5 -3
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +5 -3
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +5 -3
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +5 -3
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +5 -3
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +5 -3
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +5 -3
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +5 -3
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +5 -3
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +5 -3
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +5 -3
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +5 -3
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +5 -3
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +5 -3
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +5 -3
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +5 -3
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +5 -3
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +5 -3
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +5 -3
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +5 -3
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +5 -3
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +5 -3
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +5 -3
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +5 -3
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +5 -3
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +5 -3
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +5 -3
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +5 -3
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +5 -3
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +5 -3
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +5 -3
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +5 -3
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +5 -3
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +5 -3
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +5 -3
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +5 -3
- package/dist/ui/colorinputview.d.ts +136 -137
- package/dist/ui/inserttableview.d.ts +77 -78
- package/dist/utils/common.d.ts +64 -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 +130 -192
- package/dist/utils/ui/widget.d.ts +22 -22
- package/package.json +11 -10
package/LICENSE.md
CHANGED
|
@@ -18,7 +18,7 @@ Where not otherwise indicated, all CKEditor 5 content is authored by CKSour
|
|
|
18
18
|
|
|
19
19
|
The following libraries are included in CKEditor 5 under the [MIT license](https://opensource.org/licenses/MIT):
|
|
20
20
|
|
|
21
|
-
* es-toolkit - Copyright (c) 2024 Viva Republica, Inc
|
|
21
|
+
* es-toolkit - Copyright (c) 2024 Viva Republica, Inc.
|
|
22
22
|
|
|
23
23
|
Trademarks
|
|
24
24
|
----------
|
package/ckeditor5-metadata.json
CHANGED
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
{
|
|
218
218
|
"name": "Table column resize",
|
|
219
219
|
"className": "TableColumnResize",
|
|
220
|
-
"description": "Adds support for table column resize, which allows to set the width of each column in a table using a resize handle.",
|
|
220
|
+
"description": "Adds support for table column resize, which allows to set the width of each column in a table using a resize handle or by entering an exact value in the cell width field. Column widths can be expressed in percentages or pixels, following the table width unit.",
|
|
221
221
|
"docs": "features/tables/tables-resize.html",
|
|
222
222
|
"path": "src/tablecolumnresize.ts",
|
|
223
223
|
"requires": [
|
|
@@ -233,6 +233,17 @@
|
|
|
233
233
|
}
|
|
234
234
|
]
|
|
235
235
|
},
|
|
236
|
+
{
|
|
237
|
+
"name": "Table scroll",
|
|
238
|
+
"className": "TableScroll",
|
|
239
|
+
"description": "Adds horizontal scrolling to tables that are wider than the space available to them, so their content stays readable instead of squeezing the columns or breaking the page layout.",
|
|
240
|
+
"docs": "features/tables/tables-scroll.html",
|
|
241
|
+
"path": "src/tablescroll.ts",
|
|
242
|
+
"requires": [
|
|
243
|
+
"Table",
|
|
244
|
+
"TableProperties"
|
|
245
|
+
]
|
|
246
|
+
},
|
|
236
247
|
{
|
|
237
248
|
"name": "PlainTableOutput",
|
|
238
249
|
"className": "PlainTableOutput",
|
package/dist/augmentation.d.ts
CHANGED
|
@@ -1,82 +1,85 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { TableConfig, Table, TableCaption, TableCaptionEditing, TableCaptionUI, TableCellProperties, TableCellPropertiesEditing, TableCellPropertiesUI, TableCellWidthEditing, TableClipboard, TableColumnResize, TableColumnResizeEditing, TableEditing, TableKeyboard, TableLayout, TableLayoutEditing, TableMouse, TableProperties, TablePropertiesEditing, TablePropertiesUI, TableSelection, TableToolbar, TableUI, TableUtils, PlainTableOutput, InsertColumnCommand, InsertRowCommand, InsertTableCommand, InsertTableLayoutCommand, MergeCellCommand, MergeCellsCommand, RemoveColumnCommand, RemoveRowCommand, SelectColumnCommand, SelectRowCommand, SetHeaderColumnCommand, SetHeaderRowCommand, TableTypeCommand, SplitCellCommand, ToggleTableCaptionCommand, TableCellBackgroundColorCommand, TableCellBorderColorCommand, TableCellBorderStyleCommand, TableCellBorderWidthCommand, TableCellHeightCommand, TableCellHorizontalAlignmentCommand, TableCellPaddingCommand, TableCellVerticalAlignmentCommand, TableCellWidthCommand, TableAlignmentCommand, TableBackgroundColorCommand, TableBorderColorCommand, TableBorderStyleCommand, TableBorderWidthCommand, TableHeightCommand, TableWidthCommand, TableCellTypeCommand, SetFooterRowCommand } from
|
|
6
|
-
declare module
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
+
import type { TableConfig, Table, TableCaption, TableCaptionEditing, TableCaptionUI, TableCellProperties, TableCellPropertiesEditing, TableCellPropertiesUI, TableCellWidthEditing, TableClipboard, TableColumnResize, TableColumnResizeEditing, TableEditing, TableKeyboard, TableLayout, TableLayoutEditing, TableMouse, TableProperties, TablePropertiesEditing, TablePropertiesUI, TableScroll, TableSelection, TableToolbar, TableUI, TableUtils, PlainTableOutput, InsertColumnCommand, InsertRowCommand, InsertTableCommand, InsertTableLayoutCommand, MergeCellCommand, MergeCellsCommand, RemoveColumnCommand, RemoveRowCommand, SelectColumnCommand, SelectRowCommand, SetHeaderColumnCommand, SetHeaderRowCommand, TableTypeCommand, SplitCellCommand, ToggleTableCaptionCommand, TableCellBackgroundColorCommand, TableCellBorderColorCommand, TableCellBorderStyleCommand, TableCellBorderWidthCommand, TableCellHeightCommand, TableCellHorizontalAlignmentCommand, TableCellPaddingCommand, TableCellVerticalAlignmentCommand, TableCellWidthCommand, TableColumnWidthCommand, TableAlignmentCommand, TableBackgroundColorCommand, TableBorderColorCommand, TableBorderStyleCommand, TableBorderWidthCommand, TableHeightCommand, TableWidthCommand, TableCellTypeCommand, SetFooterRowCommand, TableScrollEditing } from "./index.js";
|
|
6
|
+
declare 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
|
+
[TableLayout.pluginName]: TableLayout;
|
|
30
|
+
[TableLayoutEditing.pluginName]: TableLayoutEditing;
|
|
31
|
+
[TableMouse.pluginName]: TableMouse;
|
|
32
|
+
[TableProperties.pluginName]: TableProperties;
|
|
33
|
+
[TablePropertiesEditing.pluginName]: TablePropertiesEditing;
|
|
34
|
+
[TablePropertiesUI.pluginName]: TablePropertiesUI;
|
|
35
|
+
[TableScroll.pluginName]: TableScroll;
|
|
36
|
+
[TableScrollEditing.pluginName]: TableScrollEditing;
|
|
37
|
+
[TableSelection.pluginName]: TableSelection;
|
|
38
|
+
[TableToolbar.pluginName]: TableToolbar;
|
|
39
|
+
[TableUI.pluginName]: TableUI;
|
|
40
|
+
[TableUtils.pluginName]: TableUtils;
|
|
41
|
+
[PlainTableOutput.pluginName]: PlainTableOutput;
|
|
42
|
+
}
|
|
43
|
+
interface CommandsMap {
|
|
44
|
+
insertTableColumnLeft: InsertColumnCommand;
|
|
45
|
+
insertTableColumnRight: InsertColumnCommand;
|
|
46
|
+
insertTableRowAbove: InsertRowCommand;
|
|
47
|
+
insertTableRowBelow: InsertRowCommand;
|
|
48
|
+
insertTable: InsertTableCommand;
|
|
49
|
+
insertTableLayout: InsertTableLayoutCommand;
|
|
50
|
+
mergeTableCellRight: MergeCellCommand;
|
|
51
|
+
mergeTableCellLeft: MergeCellCommand;
|
|
52
|
+
mergeTableCellDown: MergeCellCommand;
|
|
53
|
+
mergeTableCellUp: MergeCellCommand;
|
|
54
|
+
mergeTableCells: MergeCellsCommand;
|
|
55
|
+
removeTableColumn: RemoveColumnCommand;
|
|
56
|
+
removeTableRow: RemoveRowCommand;
|
|
57
|
+
selectTableColumn: SelectColumnCommand;
|
|
58
|
+
selectTableRow: SelectRowCommand;
|
|
59
|
+
setTableColumnHeader: SetHeaderColumnCommand;
|
|
60
|
+
setTableRowHeader: SetHeaderRowCommand;
|
|
61
|
+
setTableFooterRow: SetFooterRowCommand;
|
|
62
|
+
splitTableCellVertically: SplitCellCommand;
|
|
63
|
+
splitTableCellHorizontally: SplitCellCommand;
|
|
64
|
+
toggleTableCaption: ToggleTableCaptionCommand;
|
|
65
|
+
tableCellBackgroundColor: TableCellBackgroundColorCommand;
|
|
66
|
+
tableCellBorderColor: TableCellBorderColorCommand;
|
|
67
|
+
tableCellBorderStyle: TableCellBorderStyleCommand;
|
|
68
|
+
tableCellBorderWidth: TableCellBorderWidthCommand;
|
|
69
|
+
tableCellHeight: TableCellHeightCommand;
|
|
70
|
+
tableCellHorizontalAlignment: TableCellHorizontalAlignmentCommand;
|
|
71
|
+
tableCellPadding: TableCellPaddingCommand;
|
|
72
|
+
tableCellVerticalAlignment: TableCellVerticalAlignmentCommand;
|
|
73
|
+
tableCellWidth: TableCellWidthCommand;
|
|
74
|
+
tableColumnWidth: TableColumnWidthCommand;
|
|
75
|
+
tableCellType: TableCellTypeCommand;
|
|
76
|
+
tableAlignment: TableAlignmentCommand;
|
|
77
|
+
tableBackgroundColor: TableBackgroundColorCommand;
|
|
78
|
+
tableBorderColor: TableBorderColorCommand;
|
|
79
|
+
tableBorderStyle: TableBorderStyleCommand;
|
|
80
|
+
tableBorderWidth: TableBorderWidthCommand;
|
|
81
|
+
tableHeight: TableHeightCommand;
|
|
82
|
+
tableWidth: TableWidthCommand;
|
|
83
|
+
tableType: TableTypeCommand;
|
|
84
|
+
}
|
|
82
85
|
}
|
|
@@ -1,55 +1,55 @@
|
|
|
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, type Editor } from
|
|
6
|
+
* @module table/commands/insertcolumncommand
|
|
7
|
+
*/
|
|
8
|
+
import { Command, type Editor } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
10
|
+
* The insert column command.
|
|
11
|
+
*
|
|
12
|
+
* The command is registered by {@link module:table/tableediting~TableEditing} as the `'insertTableColumnLeft'` and
|
|
13
|
+
* `'insertTableColumnRight'` editor commands.
|
|
14
|
+
*
|
|
15
|
+
* To insert a column to the left of the selected cell, execute the following command:
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* editor.execute( 'insertTableColumnLeft' );
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* To insert a column to the right of the selected cell, execute the following command:
|
|
22
|
+
*
|
|
23
|
+
* ```ts
|
|
24
|
+
* editor.execute( 'insertTableColumnRight' );
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
27
|
export declare class InsertColumnCommand extends Command {
|
|
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
|
-
|
|
28
|
+
/**
|
|
29
|
+
* The order of insertion relative to the column in which the caret is located.
|
|
30
|
+
*/
|
|
31
|
+
readonly order: "left" | "right";
|
|
32
|
+
/**
|
|
33
|
+
* Creates a new `InsertColumnCommand` instance.
|
|
34
|
+
*
|
|
35
|
+
* @param editor An editor on which this command will be used.
|
|
36
|
+
* @param options.order The order of insertion relative to the column in which the caret is located.
|
|
37
|
+
* Possible values: `"left"` and `"right"`. Default value is "right".
|
|
38
|
+
*/
|
|
39
|
+
constructor(editor: Editor, options?: {
|
|
40
|
+
order?: "left" | "right";
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* @inheritDoc
|
|
44
|
+
*/
|
|
45
|
+
override refresh(): void;
|
|
46
|
+
/**
|
|
47
|
+
* Executes the command.
|
|
48
|
+
*
|
|
49
|
+
* Depending on the command's {@link #order} value, it inserts a column to the `'left'` or `'right'` of the column
|
|
50
|
+
* in which the selection is set.
|
|
51
|
+
*
|
|
52
|
+
* @fires execute
|
|
53
|
+
*/
|
|
54
|
+
override execute(): void;
|
|
55
55
|
}
|
|
@@ -1,54 +1,54 @@
|
|
|
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, type Editor } from
|
|
6
|
+
* @module table/commands/insertrowcommand
|
|
7
|
+
*/
|
|
8
|
+
import { Command, type Editor } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
10
|
+
* The insert row command.
|
|
11
|
+
*
|
|
12
|
+
* The command is registered by {@link module:table/tableediting~TableEditing} as the `'insertTableRowBelow'` and
|
|
13
|
+
* `'insertTableRowAbove'` editor commands.
|
|
14
|
+
*
|
|
15
|
+
* To insert a row below the selected cell, execute the following command:
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* editor.execute( 'insertTableRowBelow' );
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* To insert a row above the selected cell, execute the following command:
|
|
22
|
+
*
|
|
23
|
+
* ```ts
|
|
24
|
+
* editor.execute( 'insertTableRowAbove' );
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
27
|
export declare class InsertRowCommand extends Command {
|
|
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
|
-
|
|
28
|
+
/**
|
|
29
|
+
* The order of insertion relative to the row in which the caret is located.
|
|
30
|
+
*/
|
|
31
|
+
readonly order: "above" | "below";
|
|
32
|
+
/**
|
|
33
|
+
* Creates a new `InsertRowCommand` instance.
|
|
34
|
+
*
|
|
35
|
+
* @param editor The editor on which this command will be used.
|
|
36
|
+
* @param options.order The order of insertion relative to the row in which the caret is located.
|
|
37
|
+
* Possible values: `"above"` and `"below"`. Default value is "below"
|
|
38
|
+
*/
|
|
39
|
+
constructor(editor: Editor, options?: {
|
|
40
|
+
order?: "above" | "below";
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* @inheritDoc
|
|
44
|
+
*/
|
|
45
|
+
override refresh(): void;
|
|
46
|
+
/**
|
|
47
|
+
* Executes the command.
|
|
48
|
+
*
|
|
49
|
+
* Depending on the command's {@link #order} value, it inserts a row `'below'` or `'above'` the row in which selection is set.
|
|
50
|
+
*
|
|
51
|
+
* @fires execute
|
|
52
|
+
*/
|
|
53
|
+
override execute(): void;
|
|
54
54
|
}
|
|
@@ -1,48 +1,53 @@
|
|
|
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
|
|
6
|
+
* @module table/commands/inserttablecommand
|
|
7
|
+
*/
|
|
8
|
+
import { Command } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
* The insert table command.
|
|
11
|
+
*
|
|
12
|
+
* The command is registered by {@link module:table/tableediting~TableEditing} as the `'insertTable'` editor command.
|
|
13
|
+
*
|
|
14
|
+
* To insert a table at the current selection, execute the command and specify the dimensions:
|
|
15
|
+
*
|
|
16
|
+
* ```ts
|
|
17
|
+
* editor.execute( 'insertTable', { rows: 20, columns: 5 } );
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
20
|
export declare class InsertTableCommand extends Command {
|
|
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
|
-
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
override refresh(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Executes the command.
|
|
27
|
+
*
|
|
28
|
+
* Inserts a table with the given number of rows and columns into the editor.
|
|
29
|
+
*
|
|
30
|
+
* @param options.rows The number of rows to create in the inserted table. Default value is 2.
|
|
31
|
+
* @param options.columns The number of columns to create in the inserted table. Default value is 2.
|
|
32
|
+
* @param options.headingRows The number of heading rows. If not provided it will default to
|
|
33
|
+
* {@link module:table/tableconfig~TableConfig#defaultHeadings `config.table.defaultHeadings.rows`} table config.
|
|
34
|
+
* @param options.headingColumns The number of heading columns. If not provided it will default to
|
|
35
|
+
* {@link module:table/tableconfig~TableConfig#defaultHeadings `config.table.defaultHeadings.columns`} table config.
|
|
36
|
+
* @param options.footerRows The number of footer rows. If not provided it will default to
|
|
37
|
+
* {@link module:table/tableconfig~TableConfig#defaultFooters `config.table.defaultFooters`} table config.
|
|
38
|
+
* This option is ignored when {@link module:table/tableconfig~TableConfig#enableFooters `config.table.enableFooters`} is `false`.
|
|
39
|
+
* @param options.inheritTextFormattingAttributes Whether every empty cell should inherit the `copyOnEnter` text
|
|
40
|
+
* formatting attributes (e.g. bold, font color) that were uniformly active in the content right before
|
|
41
|
+
* the table, so that whichever cell the user starts typing in first continues that formatting. Defaults
|
|
42
|
+
* to `true`.
|
|
43
|
+
* @fires execute
|
|
44
|
+
*/
|
|
45
|
+
override execute(options?: {
|
|
46
|
+
rows?: number;
|
|
47
|
+
columns?: number;
|
|
48
|
+
headingRows?: number;
|
|
49
|
+
headingColumns?: number;
|
|
50
|
+
footerRows?: number;
|
|
51
|
+
inheritTextFormattingAttributes?: boolean;
|
|
52
|
+
}): void;
|
|
48
53
|
}
|
|
@@ -1,39 +1,44 @@
|
|
|
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
|
|
6
|
+
* @module table/commands/inserttablelayoutcommand
|
|
7
|
+
*/
|
|
8
|
+
import { Command } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
* The insert table layout command.
|
|
11
|
+
*
|
|
12
|
+
* The command is registered by {@link module:table/tablelayout/tablelayoutediting~TableLayoutEditing}
|
|
13
|
+
* as the `'insertTableLayout'` editor command.
|
|
14
|
+
*
|
|
15
|
+
* To insert a layout table at the current selection, execute the command and specify the dimensions:
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* editor.execute( 'insertTableLayout', { rows: 20, columns: 5 } );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
21
|
export declare class InsertTableLayoutCommand extends Command {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
override refresh(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Executes the command.
|
|
28
|
+
*
|
|
29
|
+
* Inserts a layout table with the given number of rows and columns into the editor.
|
|
30
|
+
*
|
|
31
|
+
* @param options.rows The number of rows to create in the inserted table. Default value is 2.
|
|
32
|
+
* @param options.columns The number of columns to create in the inserted table. Default value is 2.
|
|
33
|
+
* @param options.inheritTextFormattingAttributes Whether every empty cell should inherit the `copyOnEnter` text
|
|
34
|
+
* formatting attributes (e.g. bold, font color) that were uniformly active in the content right before
|
|
35
|
+
* the table, so that whichever cell the user starts typing in first continues that formatting. Defaults
|
|
36
|
+
* to `true`.
|
|
37
|
+
* @fires execute
|
|
38
|
+
*/
|
|
39
|
+
override execute(options?: {
|
|
40
|
+
rows?: number;
|
|
41
|
+
columns?: number;
|
|
42
|
+
inheritTextFormattingAttributes?: boolean;
|
|
43
|
+
}): void;
|
|
39
44
|
}
|