@ckeditor/ckeditor5-table 0.0.0-nightly-20250605.0 → 0.0.0-nightly-20250607.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/build/table.js +1 -1
- package/dist/index-content.css +2 -1
- package/dist/index.css +2 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +50 -6
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/commands/insertcolumncommand.d.ts +1 -1
- package/src/commands/insertcolumncommand.js +1 -1
- package/src/commands/insertrowcommand.d.ts +1 -1
- package/src/commands/insertrowcommand.js +1 -1
- package/src/commands/inserttablecommand.d.ts +1 -1
- package/src/commands/inserttablecommand.js +1 -1
- package/src/commands/inserttablelayoutcommand.d.ts +1 -1
- package/src/commands/inserttablelayoutcommand.js +1 -1
- package/src/commands/mergecellcommand.d.ts +1 -1
- package/src/commands/mergecellcommand.js +2 -2
- package/src/commands/mergecellscommand.d.ts +1 -1
- package/src/commands/mergecellscommand.js +2 -2
- package/src/commands/removecolumncommand.d.ts +1 -1
- package/src/commands/removecolumncommand.js +2 -2
- package/src/commands/removerowcommand.d.ts +1 -1
- package/src/commands/removerowcommand.js +1 -1
- package/src/commands/selectcolumncommand.d.ts +1 -1
- package/src/commands/selectcolumncommand.js +2 -2
- package/src/commands/selectrowcommand.d.ts +1 -1
- package/src/commands/selectrowcommand.js +1 -1
- package/src/commands/setheadercolumncommand.d.ts +1 -1
- package/src/commands/setheadercolumncommand.js +1 -1
- package/src/commands/setheaderrowcommand.d.ts +1 -1
- package/src/commands/setheaderrowcommand.js +1 -1
- package/src/commands/splitcellcommand.d.ts +1 -1
- package/src/commands/splitcellcommand.js +1 -1
- package/src/converters/downcast.d.ts +1 -1
- package/src/converters/downcast.js +1 -1
- package/src/converters/table-caption-post-fixer.d.ts +1 -1
- package/src/converters/table-caption-post-fixer.js +1 -1
- package/src/converters/table-cell-paragraph-post-fixer.d.ts +1 -1
- package/src/converters/table-cell-paragraph-post-fixer.js +1 -1
- package/src/converters/table-cell-refresh-handler.d.ts +1 -1
- package/src/converters/table-cell-refresh-handler.js +1 -1
- package/src/converters/table-headings-refresh-handler.d.ts +1 -1
- package/src/converters/table-headings-refresh-handler.js +2 -2
- package/src/converters/table-layout-post-fixer.d.ts +1 -1
- package/src/converters/table-layout-post-fixer.js +2 -2
- package/src/converters/upcasttable.d.ts +1 -1
- package/src/converters/upcasttable.js +1 -1
- package/src/index.d.ts +55 -55
- package/src/index.js +55 -24
- package/src/plaintableoutput.d.ts +2 -2
- package/src/plaintableoutput.js +2 -2
- package/src/table.d.ts +7 -7
- package/src/table.js +7 -7
- package/src/tablecaption/tablecaptionediting.d.ts +1 -1
- package/src/tablecaption/tablecaptionediting.js +3 -3
- package/src/tablecaption/tablecaptionui.d.ts +1 -1
- package/src/tablecaption/tablecaptionui.js +1 -1
- package/src/tablecaption/toggletablecaptioncommand.d.ts +1 -1
- package/src/tablecaption/toggletablecaptioncommand.js +1 -1
- package/src/tablecaption.d.ts +3 -3
- package/src/tablecaption.js +3 -3
- package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +2 -2
- package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +2 -2
- package/src/tablecellproperties/commands/tablecellbordercolorcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellborderstylecommand.d.ts +2 -2
- package/src/tablecellproperties/commands/tablecellborderstylecommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +2 -2
- package/src/tablecellproperties/commands/tablecellborderwidthcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellheightcommand.d.ts +2 -2
- package/src/tablecellproperties/commands/tablecellheightcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +2 -2
- package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellpaddingcommand.d.ts +2 -2
- package/src/tablecellproperties/commands/tablecellpaddingcommand.js +2 -2
- package/src/tablecellproperties/commands/tablecellpropertycommand.d.ts +1 -1
- package/src/tablecellproperties/commands/tablecellpropertycommand.js +1 -1
- package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +2 -2
- package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.js +2 -2
- package/src/tablecellproperties/tablecellpropertiesediting.d.ts +3 -3
- package/src/tablecellproperties/tablecellpropertiesediting.js +16 -11
- package/src/tablecellproperties/tablecellpropertiesui.d.ts +2 -2
- package/src/tablecellproperties/tablecellpropertiesui.js +2 -2
- package/src/tablecellproperties/ui/tablecellpropertiesview.d.ts +2 -2
- package/src/tablecellproperties/ui/tablecellpropertiesview.js +1 -1
- package/src/tablecellproperties.d.ts +3 -3
- package/src/tablecellproperties.js +3 -3
- package/src/tablecellwidth/commands/tablecellwidthcommand.d.ts +2 -2
- package/src/tablecellwidth/commands/tablecellwidthcommand.js +2 -2
- package/src/tablecellwidth/tablecellwidthediting.d.ts +2 -2
- package/src/tablecellwidth/tablecellwidthediting.js +3 -3
- package/src/tableclipboard.d.ts +3 -3
- package/src/tableclipboard.js +4 -4
- package/src/tablecolumnresize/converters.d.ts +5 -1
- package/src/tablecolumnresize/converters.js +10 -0
- package/src/tablecolumnresize/tablecolumnresizeediting.d.ts +3 -3
- package/src/tablecolumnresize/tablecolumnresizeediting.js +13 -10
- package/src/tablecolumnresize/tablewidthscommand.d.ts +1 -1
- package/src/tablecolumnresize/tablewidthscommand.js +1 -1
- package/src/tablecolumnresize/utils.d.ts +1 -1
- package/src/tablecolumnresize/utils.js +2 -2
- package/src/tablecolumnresize.d.ts +3 -3
- package/src/tablecolumnresize.js +3 -3
- package/src/tableconfig.d.ts +1 -1
- package/src/tableediting.d.ts +2 -2
- package/src/tableediting.js +19 -19
- package/src/tablekeyboard.d.ts +3 -3
- package/src/tablekeyboard.js +4 -4
- package/src/tablelayout/commands/tabletypecommand.d.ts +1 -1
- package/src/tablelayout/commands/tabletypecommand.js +1 -1
- package/src/tablelayout/tablelayoutediting.d.ts +2 -2
- package/src/tablelayout/tablelayoutediting.js +4 -4
- package/src/tablelayout/tablelayoutui.d.ts +1 -1
- package/src/tablelayout/tablelayoutui.js +2 -2
- package/src/tablelayout.d.ts +5 -5
- package/src/tablelayout.js +5 -5
- package/src/tablemouse/mouseeventsobserver.d.ts +1 -1
- package/src/tablemouse/mouseeventsobserver.js +1 -1
- package/src/tablemouse.d.ts +3 -3
- package/src/tablemouse.js +4 -4
- package/src/tableproperties/commands/tablealignmentcommand.d.ts +2 -2
- package/src/tableproperties/commands/tablealignmentcommand.js +2 -2
- package/src/tableproperties/commands/tablebackgroundcolorcommand.d.ts +2 -2
- package/src/tableproperties/commands/tablebackgroundcolorcommand.js +2 -2
- package/src/tableproperties/commands/tablebordercolorcommand.d.ts +2 -2
- package/src/tableproperties/commands/tablebordercolorcommand.js +2 -2
- package/src/tableproperties/commands/tableborderstylecommand.d.ts +2 -2
- package/src/tableproperties/commands/tableborderstylecommand.js +2 -2
- package/src/tableproperties/commands/tableborderwidthcommand.d.ts +2 -2
- package/src/tableproperties/commands/tableborderwidthcommand.js +2 -2
- package/src/tableproperties/commands/tableheightcommand.d.ts +2 -2
- package/src/tableproperties/commands/tableheightcommand.js +2 -2
- package/src/tableproperties/commands/tablepropertycommand.d.ts +1 -1
- package/src/tableproperties/commands/tablepropertycommand.js +1 -1
- package/src/tableproperties/commands/tablewidthcommand.d.ts +2 -2
- package/src/tableproperties/commands/tablewidthcommand.js +2 -2
- package/src/tableproperties/tablepropertiesediting.d.ts +2 -2
- package/src/tableproperties/tablepropertiesediting.js +15 -9
- package/src/tableproperties/tablepropertiesui.d.ts +2 -2
- package/src/tableproperties/tablepropertiesui.js +2 -2
- package/src/tableproperties/ui/tablepropertiesview.d.ts +2 -2
- package/src/tableproperties/ui/tablepropertiesview.js +1 -1
- package/src/tableproperties.d.ts +3 -3
- package/src/tableproperties.js +3 -3
- package/src/tableselection.d.ts +2 -2
- package/src/tableselection.js +3 -3
- package/src/tabletoolbar.d.ts +1 -1
- package/src/tabletoolbar.js +1 -1
- package/src/tableui.d.ts +1 -1
- package/src/tableui.js +2 -2
- package/src/tableutils.d.ts +2 -2
- package/src/tableutils.js +2 -2
- package/src/tablewalker.d.ts +1 -1
- package/src/tablewalker.js +1 -1
- package/src/ui/colorinputview.d.ts +1 -1
- package/src/ui/colorinputview.js +1 -1
- package/src/ui/inserttableview.d.ts +1 -1
- package/src/ui/inserttableview.js +1 -1
- package/src/utils/common.d.ts +1 -1
- package/src/utils/common.js +1 -0
- package/src/utils/structure.d.ts +1 -1
- package/src/utils/structure.js +1 -1
- package/src/utils/ui/table-properties.d.ts +3 -3
- package/src/utils/ui/table-properties.js +1 -1
- package/theme/tablecaption.css +2 -1
package/src/index.js
CHANGED
|
@@ -5,28 +5,59 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module table
|
|
7
7
|
*/
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
8
|
+
export { PlainTableOutput } from './plaintableoutput.js';
|
|
9
|
+
export { Table } from './table.js';
|
|
10
|
+
export { TableEditing } from './tableediting.js';
|
|
11
|
+
export { TableUI } from './tableui.js';
|
|
12
|
+
export { TableToolbar } from './tabletoolbar.js';
|
|
13
|
+
export { TableCellProperties } from './tablecellproperties.js';
|
|
14
|
+
export { TableCellPropertiesEditing } from './tablecellproperties/tablecellpropertiesediting.js';
|
|
15
|
+
export { TableCellPropertiesUI } from './tablecellproperties/tablecellpropertiesui.js';
|
|
16
|
+
export { TableCellWidthEditing } from './tablecellwidth/tablecellwidthediting.js';
|
|
17
|
+
export { TableLayout } from './tablelayout.js';
|
|
18
|
+
export { TableLayoutEditing } from './tablelayout/tablelayoutediting.js';
|
|
19
|
+
export { TableProperties } from './tableproperties.js';
|
|
20
|
+
export { TablePropertiesEditing } from './tableproperties/tablepropertiesediting.js';
|
|
21
|
+
export { TablePropertiesUI } from './tableproperties/tablepropertiesui.js';
|
|
22
|
+
export { TableCaption } from './tablecaption.js';
|
|
23
|
+
export { TableCaptionEditing } from './tablecaption/tablecaptionediting.js';
|
|
24
|
+
export { TableCaptionUI } from './tablecaption/tablecaptionui.js';
|
|
25
|
+
export { TableClipboard } from './tableclipboard.js';
|
|
26
|
+
export { TableMouse } from './tablemouse.js';
|
|
27
|
+
export { TableKeyboard } from './tablekeyboard.js';
|
|
28
|
+
export { TableSelection } from './tableselection.js';
|
|
29
|
+
export { TableUtils } from './tableutils.js';
|
|
30
|
+
export { TableColumnResize } from './tablecolumnresize.js';
|
|
31
|
+
export { TableColumnResizeEditing } from './tablecolumnresize/tablecolumnresizeediting.js';
|
|
32
|
+
export { InsertColumnCommand } from './commands/insertcolumncommand.js';
|
|
33
|
+
export { InsertRowCommand } from './commands/insertrowcommand.js';
|
|
34
|
+
export { InsertTableCommand } from './commands/inserttablecommand.js';
|
|
35
|
+
export { InsertTableLayoutCommand } from './commands/inserttablelayoutcommand.js';
|
|
36
|
+
export { TableTypeCommand } from './tablelayout/commands/tabletypecommand.js';
|
|
37
|
+
export { MergeCellCommand } from './commands/mergecellcommand.js';
|
|
38
|
+
export { MergeCellsCommand } from './commands/mergecellscommand.js';
|
|
39
|
+
export { RemoveColumnCommand } from './commands/removecolumncommand.js';
|
|
40
|
+
export { RemoveRowCommand } from './commands/removerowcommand.js';
|
|
41
|
+
export { SelectColumnCommand } from './commands/selectcolumncommand.js';
|
|
42
|
+
export { SelectRowCommand } from './commands/selectrowcommand.js';
|
|
43
|
+
export { SetHeaderColumnCommand } from './commands/setheadercolumncommand.js';
|
|
44
|
+
export { SetHeaderRowCommand } from './commands/setheaderrowcommand.js';
|
|
45
|
+
export { SplitCellCommand } from './commands/splitcellcommand.js';
|
|
46
|
+
export { ToggleTableCaptionCommand } from './tablecaption/toggletablecaptioncommand.js';
|
|
47
|
+
export { TableCellBackgroundColorCommand } from './tablecellproperties/commands/tablecellbackgroundcolorcommand.js';
|
|
48
|
+
export { TableCellBorderColorCommand } from './tablecellproperties/commands/tablecellbordercolorcommand.js';
|
|
49
|
+
export { TableCellBorderStyleCommand } from './tablecellproperties/commands/tablecellborderstylecommand.js';
|
|
50
|
+
export { TableCellBorderWidthCommand } from './tablecellproperties/commands/tablecellborderwidthcommand.js';
|
|
51
|
+
export { TableCellHeightCommand } from './tablecellproperties/commands/tablecellheightcommand.js';
|
|
52
|
+
export { TableCellHorizontalAlignmentCommand } from './tablecellproperties/commands/tablecellhorizontalalignmentcommand.js';
|
|
53
|
+
export { TableCellPaddingCommand } from './tablecellproperties/commands/tablecellpaddingcommand.js';
|
|
54
|
+
export { TableCellVerticalAlignmentCommand } from './tablecellproperties/commands/tablecellverticalalignmentcommand.js';
|
|
55
|
+
export { TableCellWidthCommand } from './tablecellwidth/commands/tablecellwidthcommand.js';
|
|
56
|
+
export { TableAlignmentCommand } from './tableproperties/commands/tablealignmentcommand.js';
|
|
57
|
+
export { TableBackgroundColorCommand } from './tableproperties/commands/tablebackgroundcolorcommand.js';
|
|
58
|
+
export { TableBorderColorCommand } from './tableproperties/commands/tablebordercolorcommand.js';
|
|
59
|
+
export { TableBorderStyleCommand } from './tableproperties/commands/tableborderstylecommand.js';
|
|
60
|
+
export { TableBorderWidthCommand } from './tableproperties/commands/tableborderwidthcommand.js';
|
|
61
|
+
export { TableHeightCommand } from './tableproperties/commands/tableheightcommand.js';
|
|
62
|
+
export { TableWidthCommand } from './tableproperties/commands/tablewidthcommand.js';
|
|
32
63
|
import './augmentation.js';
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
* @module table/plaintableoutput
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import Table from './table.js';
|
|
9
|
+
import { Table } from './table.js';
|
|
10
10
|
/**
|
|
11
11
|
* The plain table output feature.
|
|
12
12
|
*
|
|
13
13
|
* This feature strips the `<figure>` tag from the table data. This is because this tag is not supported
|
|
14
14
|
* by most popular email clients and removing it ensures compatibility.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export declare class PlainTableOutput extends Plugin {
|
|
17
17
|
/**
|
|
18
18
|
* @inheritDoc
|
|
19
19
|
*/
|
package/src/plaintableoutput.js
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
* @module table/plaintableoutput
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import Table from './table.js';
|
|
9
|
+
import { Table } from './table.js';
|
|
10
10
|
/**
|
|
11
11
|
* The plain table output feature.
|
|
12
12
|
*
|
|
13
13
|
* This feature strips the `<figure>` tag from the table data. This is because this tag is not supported
|
|
14
14
|
* by most popular email clients and removing it ensures compatibility.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export class PlainTableOutput extends Plugin {
|
|
17
17
|
/**
|
|
18
18
|
* @inheritDoc
|
|
19
19
|
*/
|
package/src/table.d.ts
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
import { Widget } from 'ckeditor5/src/widget.js';
|
|
10
|
-
import TableEditing from './tableediting.js';
|
|
11
|
-
import TableUI from './tableui.js';
|
|
12
|
-
import TableSelection from './tableselection.js';
|
|
13
|
-
import TableClipboard from './tableclipboard.js';
|
|
14
|
-
import TableKeyboard from './tablekeyboard.js';
|
|
15
|
-
import TableMouse from './tablemouse.js';
|
|
10
|
+
import { TableEditing } from './tableediting.js';
|
|
11
|
+
import { TableUI } from './tableui.js';
|
|
12
|
+
import { TableSelection } from './tableselection.js';
|
|
13
|
+
import { TableClipboard } from './tableclipboard.js';
|
|
14
|
+
import { TableKeyboard } from './tablekeyboard.js';
|
|
15
|
+
import { TableMouse } from './tablemouse.js';
|
|
16
16
|
import '../theme/table.css';
|
|
17
17
|
/**
|
|
18
18
|
* The table plugin.
|
|
@@ -28,7 +28,7 @@ import '../theme/table.css';
|
|
|
28
28
|
* * {@link module:table/tableclipboard~TableClipboard clipboard feature},
|
|
29
29
|
* * {@link module:table/tableui~TableUI UI feature}.
|
|
30
30
|
*/
|
|
31
|
-
export
|
|
31
|
+
export declare class Table extends Plugin {
|
|
32
32
|
/**
|
|
33
33
|
* @inheritDoc
|
|
34
34
|
*/
|
package/src/table.js
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
import { Widget } from 'ckeditor5/src/widget.js';
|
|
10
|
-
import TableEditing from './tableediting.js';
|
|
11
|
-
import TableUI from './tableui.js';
|
|
12
|
-
import TableSelection from './tableselection.js';
|
|
13
|
-
import TableClipboard from './tableclipboard.js';
|
|
14
|
-
import TableKeyboard from './tablekeyboard.js';
|
|
15
|
-
import TableMouse from './tablemouse.js';
|
|
10
|
+
import { TableEditing } from './tableediting.js';
|
|
11
|
+
import { TableUI } from './tableui.js';
|
|
12
|
+
import { TableSelection } from './tableselection.js';
|
|
13
|
+
import { TableClipboard } from './tableclipboard.js';
|
|
14
|
+
import { TableKeyboard } from './tablekeyboard.js';
|
|
15
|
+
import { TableMouse } from './tablemouse.js';
|
|
16
16
|
import '../theme/table.css';
|
|
17
17
|
/**
|
|
18
18
|
* The table plugin.
|
|
@@ -28,7 +28,7 @@ import '../theme/table.css';
|
|
|
28
28
|
* * {@link module:table/tableclipboard~TableClipboard clipboard feature},
|
|
29
29
|
* * {@link module:table/tableui~TableUI UI feature}.
|
|
30
30
|
*/
|
|
31
|
-
export
|
|
31
|
+
export class Table extends Plugin {
|
|
32
32
|
/**
|
|
33
33
|
* @inheritDoc
|
|
34
34
|
*/
|
|
@@ -10,7 +10,7 @@ import { Element } from 'ckeditor5/src/engine.js';
|
|
|
10
10
|
/**
|
|
11
11
|
* The table caption editing plugin.
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export declare class TableCaptionEditing extends Plugin {
|
|
14
14
|
/**
|
|
15
15
|
* A map that keeps saved JSONified table captions and table model elements they are
|
|
16
16
|
* associated with.
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
import { Element, enablePlaceholder } from 'ckeditor5/src/engine.js';
|
|
10
10
|
import { toWidgetEditable } from 'ckeditor5/src/widget.js';
|
|
11
|
-
import injectTableCaptionPostFixer from '../converters/table-caption-post-fixer.js';
|
|
12
|
-
import ToggleTableCaptionCommand from './toggletablecaptioncommand.js';
|
|
11
|
+
import { injectTableCaptionPostFixer } from '../converters/table-caption-post-fixer.js';
|
|
12
|
+
import { ToggleTableCaptionCommand } from './toggletablecaptioncommand.js';
|
|
13
13
|
import { isTable, matchTableCaptionViewElement } from './utils.js';
|
|
14
14
|
/**
|
|
15
15
|
* The table caption editing plugin.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export class TableCaptionEditing extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* A map that keeps saved JSONified table captions and table model elements they are
|
|
20
20
|
* associated with.
|
|
@@ -9,7 +9,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
|
|
|
9
9
|
/**
|
|
10
10
|
* The table caption UI plugin. It introduces the `'toggleTableCaption'` UI button.
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export declare class TableCaptionUI extends Plugin {
|
|
13
13
|
/**
|
|
14
14
|
* @inheritDoc
|
|
15
15
|
*/
|
|
@@ -12,7 +12,7 @@ import { getCaptionFromModelSelection } from './utils.js';
|
|
|
12
12
|
/**
|
|
13
13
|
* The table caption UI plugin. It introduces the `'toggleTableCaption'` UI button.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export class TableCaptionUI extends Plugin {
|
|
16
16
|
/**
|
|
17
17
|
* @inheritDoc
|
|
18
18
|
*/
|
|
@@ -29,7 +29,7 @@ import { Command } from 'ckeditor5/src/core.js';
|
|
|
29
29
|
* editor.execute( 'toggleTableCaption', { focusCaptionOnShow: true } );
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
export
|
|
32
|
+
export declare class ToggleTableCaptionCommand extends Command {
|
|
33
33
|
value: boolean;
|
|
34
34
|
/**
|
|
35
35
|
* @inheritDoc
|
|
@@ -31,7 +31,7 @@ import { getSelectionAffectedTable } from '../utils/common.js';
|
|
|
31
31
|
* editor.execute( 'toggleTableCaption', { focusCaptionOnShow: true } );
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
export
|
|
34
|
+
export class ToggleTableCaptionCommand extends Command {
|
|
35
35
|
/**
|
|
36
36
|
* @inheritDoc
|
|
37
37
|
*/
|
package/src/tablecaption.d.ts
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
* @module table/tablecaption
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import TableCaptionEditing from './tablecaption/tablecaptionediting.js';
|
|
10
|
-
import TableCaptionUI from './tablecaption/tablecaptionui.js';
|
|
9
|
+
import { TableCaptionEditing } from './tablecaption/tablecaptionediting.js';
|
|
10
|
+
import { TableCaptionUI } from './tablecaption/tablecaptionui.js';
|
|
11
11
|
import '../theme/tablecaption.css';
|
|
12
12
|
/**
|
|
13
13
|
* The table caption plugin.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export declare class TableCaption extends Plugin {
|
|
16
16
|
/**
|
|
17
17
|
* @inheritDoc
|
|
18
18
|
*/
|
package/src/tablecaption.js
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
* @module table/tablecaption
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import TableCaptionEditing from './tablecaption/tablecaptionediting.js';
|
|
10
|
-
import TableCaptionUI from './tablecaption/tablecaptionui.js';
|
|
9
|
+
import { TableCaptionEditing } from './tablecaption/tablecaptionediting.js';
|
|
10
|
+
import { TableCaptionUI } from './tablecaption/tablecaptionui.js';
|
|
11
11
|
import '../theme/tablecaption.css';
|
|
12
12
|
/**
|
|
13
13
|
* The table caption plugin.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export class TableCaption extends Plugin {
|
|
16
16
|
/**
|
|
17
17
|
* @inheritDoc
|
|
18
18
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module table/tablecellproperties/commands/tablecellbackgroundcolorcommand
|
|
7
7
|
*/
|
|
8
8
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
9
|
-
import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
9
|
+
import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
|
|
10
10
|
/**
|
|
11
11
|
* The table cell background color command.
|
|
12
12
|
*
|
|
@@ -21,7 +21,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
|
21
21
|
* } );
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
export
|
|
24
|
+
export declare class TableCellBackgroundColorCommand extends TableCellPropertyCommand {
|
|
25
25
|
/**
|
|
26
26
|
* Creates a new `TableCellBackgroundColorCommand` instance.
|
|
27
27
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
5
|
+
import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
|
|
6
6
|
/**
|
|
7
7
|
* The table cell background color command.
|
|
8
8
|
*
|
|
@@ -17,7 +17,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
|
17
17
|
* } );
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export class TableCellBackgroundColorCommand extends TableCellPropertyCommand {
|
|
21
21
|
/**
|
|
22
22
|
* Creates a new `TableCellBackgroundColorCommand` instance.
|
|
23
23
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { Element } from 'ckeditor5/src/engine.js';
|
|
9
9
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
10
|
-
import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
10
|
+
import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
|
|
11
11
|
/**
|
|
12
12
|
* The table cell border color command.
|
|
13
13
|
*
|
|
@@ -22,7 +22,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
|
22
22
|
* } );
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
export
|
|
25
|
+
export declare class TableCellBorderColorCommand extends TableCellPropertyCommand {
|
|
26
26
|
/**
|
|
27
27
|
* Creates a new `TableCellBorderColorCommand` instance.
|
|
28
28
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
5
|
+
import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
|
|
6
6
|
import { getSingleValue } from '../../utils/table-properties.js';
|
|
7
7
|
/**
|
|
8
8
|
* The table cell border color command.
|
|
@@ -18,7 +18,7 @@ import { getSingleValue } from '../../utils/table-properties.js';
|
|
|
18
18
|
* } );
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export class TableCellBorderColorCommand extends TableCellPropertyCommand {
|
|
22
22
|
/**
|
|
23
23
|
* Creates a new `TableCellBorderColorCommand` instance.
|
|
24
24
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
9
9
|
import type { Element } from 'ckeditor5/src/engine.js';
|
|
10
|
-
import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
10
|
+
import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
|
|
11
11
|
/**
|
|
12
12
|
* The table cell border style command.
|
|
13
13
|
*
|
|
@@ -22,7 +22,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
|
22
22
|
* } );
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
export
|
|
25
|
+
export declare class TableCellBorderStyleCommand extends TableCellPropertyCommand {
|
|
26
26
|
/**
|
|
27
27
|
* Creates a new `TableCellBorderStyleCommand` instance.
|
|
28
28
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
5
|
+
import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
|
|
6
6
|
import { getSingleValue } from '../../utils/table-properties.js';
|
|
7
7
|
/**
|
|
8
8
|
* The table cell border style command.
|
|
@@ -18,7 +18,7 @@ import { getSingleValue } from '../../utils/table-properties.js';
|
|
|
18
18
|
* } );
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export class TableCellBorderStyleCommand extends TableCellPropertyCommand {
|
|
22
22
|
/**
|
|
23
23
|
* Creates a new `TableCellBorderStyleCommand` instance.
|
|
24
24
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
9
9
|
import type { Element } from 'ckeditor5/src/engine.js';
|
|
10
|
-
import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
10
|
+
import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
|
|
11
11
|
/**
|
|
12
12
|
* The table cell border width command.
|
|
13
13
|
*
|
|
@@ -32,7 +32,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
|
32
32
|
*
|
|
33
33
|
* will set the `borderWidth` attribute to `'5px'` in the model.
|
|
34
34
|
*/
|
|
35
|
-
export
|
|
35
|
+
export declare class TableCellBorderWidthCommand extends TableCellPropertyCommand {
|
|
36
36
|
/**
|
|
37
37
|
* Creates a new `TableCellBorderWidthCommand` instance.
|
|
38
38
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
5
|
+
import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
|
|
6
6
|
import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-properties.js';
|
|
7
7
|
/**
|
|
8
8
|
* The table cell border width command.
|
|
@@ -28,7 +28,7 @@ import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-
|
|
|
28
28
|
*
|
|
29
29
|
* will set the `borderWidth` attribute to `'5px'` in the model.
|
|
30
30
|
*/
|
|
31
|
-
export
|
|
31
|
+
export class TableCellBorderWidthCommand extends TableCellPropertyCommand {
|
|
32
32
|
/**
|
|
33
33
|
* Creates a new `TableCellBorderWidthCommand` instance.
|
|
34
34
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module table/tablecellproperties/commands/tablecellheightcommand
|
|
7
7
|
*/
|
|
8
8
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
9
|
-
import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
9
|
+
import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
|
|
10
10
|
/**
|
|
11
11
|
* The table cell height command.
|
|
12
12
|
*
|
|
@@ -31,7 +31,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
|
31
31
|
*
|
|
32
32
|
* will set the `height` attribute to `'50px'` in the model.
|
|
33
33
|
*/
|
|
34
|
-
export
|
|
34
|
+
export declare class TableCellHeightCommand extends TableCellPropertyCommand {
|
|
35
35
|
/**
|
|
36
36
|
* Creates a new `TableCellHeightCommand` instance.
|
|
37
37
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
5
|
+
import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
|
|
6
6
|
import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
|
|
7
7
|
/**
|
|
8
8
|
* The table cell height command.
|
|
@@ -28,7 +28,7 @@ import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
|
|
|
28
28
|
*
|
|
29
29
|
* will set the `height` attribute to `'50px'` in the model.
|
|
30
30
|
*/
|
|
31
|
-
export
|
|
31
|
+
export class TableCellHeightCommand extends TableCellPropertyCommand {
|
|
32
32
|
/**
|
|
33
33
|
* Creates a new `TableCellHeightCommand` instance.
|
|
34
34
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module table/tablecellproperties/commands/tablecellhorizontalalignmentcommand
|
|
7
7
|
*/
|
|
8
8
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
9
|
-
import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
9
|
+
import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
|
|
10
10
|
/**
|
|
11
11
|
* The table cell horizontal alignment command.
|
|
12
12
|
*
|
|
@@ -21,7 +21,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
|
21
21
|
* } );
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
export
|
|
24
|
+
export declare class TableCellHorizontalAlignmentCommand extends TableCellPropertyCommand {
|
|
25
25
|
/**
|
|
26
26
|
* Creates a new `TableCellHorizontalAlignmentCommand` instance.
|
|
27
27
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
5
|
+
import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
|
|
6
6
|
/**
|
|
7
7
|
* The table cell horizontal alignment command.
|
|
8
8
|
*
|
|
@@ -17,7 +17,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
|
17
17
|
* } );
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export class TableCellHorizontalAlignmentCommand extends TableCellPropertyCommand {
|
|
21
21
|
/**
|
|
22
22
|
* Creates a new `TableCellHorizontalAlignmentCommand` instance.
|
|
23
23
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
9
9
|
import type { Element } from 'ckeditor5/src/engine.js';
|
|
10
|
-
import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
10
|
+
import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
|
|
11
11
|
/**
|
|
12
12
|
* The table cell padding command.
|
|
13
13
|
*
|
|
@@ -32,7 +32,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
|
32
32
|
*
|
|
33
33
|
* will set the `padding` attribute to `'5px'` in the model.
|
|
34
34
|
*/
|
|
35
|
-
export
|
|
35
|
+
export declare class TableCellPaddingCommand extends TableCellPropertyCommand {
|
|
36
36
|
/**
|
|
37
37
|
* Creates a new `TableCellPaddingCommand` instance.
|
|
38
38
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
5
|
+
import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
|
|
6
6
|
import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-properties.js';
|
|
7
7
|
/**
|
|
8
8
|
* The table cell padding command.
|
|
@@ -28,7 +28,7 @@ import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-
|
|
|
28
28
|
*
|
|
29
29
|
* will set the `padding` attribute to `'5px'` in the model.
|
|
30
30
|
*/
|
|
31
|
-
export
|
|
31
|
+
export class TableCellPaddingCommand extends TableCellPropertyCommand {
|
|
32
32
|
/**
|
|
33
33
|
* Creates a new `TableCellPaddingCommand` instance.
|
|
34
34
|
*
|
|
@@ -12,7 +12,7 @@ import type { Element, Batch } from 'ckeditor5/src/engine.js';
|
|
|
12
12
|
*
|
|
13
13
|
* The command is a base command for other table cell property commands.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export declare class TableCellPropertyCommand extends Command {
|
|
16
16
|
/**
|
|
17
17
|
* The attribute that will be set by the command.
|
|
18
18
|
*/
|
|
@@ -12,7 +12,7 @@ import { getSelectionAffectedTable } from '../../utils/common.js';
|
|
|
12
12
|
*
|
|
13
13
|
* The command is a base command for other table cell property commands.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export class TableCellPropertyCommand extends Command {
|
|
16
16
|
/**
|
|
17
17
|
* The attribute that will be set by the command.
|
|
18
18
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module table/tablecellproperties/commands/tablecellverticalalignmentcommand
|
|
7
7
|
*/
|
|
8
8
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
9
|
-
import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
9
|
+
import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
|
|
10
10
|
/**
|
|
11
11
|
* The table cell vertical alignment command.
|
|
12
12
|
*
|
|
@@ -29,7 +29,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
|
29
29
|
*
|
|
30
30
|
* The `'middle'` value is the default one so there is no need to set it.
|
|
31
31
|
*/
|
|
32
|
-
export
|
|
32
|
+
export declare class TableCellVerticalAlignmentCommand extends TableCellPropertyCommand {
|
|
33
33
|
/**
|
|
34
34
|
* Creates a new `TableCellVerticalAlignmentCommand` instance.
|
|
35
35
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
5
|
+
import { TableCellPropertyCommand } from './tablecellpropertycommand.js';
|
|
6
6
|
/**
|
|
7
7
|
* The table cell vertical alignment command.
|
|
8
8
|
*
|
|
@@ -25,7 +25,7 @@ import TableCellPropertyCommand from './tablecellpropertycommand.js';
|
|
|
25
25
|
*
|
|
26
26
|
* The `'middle'` value is the default one so there is no need to set it.
|
|
27
27
|
*/
|
|
28
|
-
export
|
|
28
|
+
export class TableCellVerticalAlignmentCommand extends TableCellPropertyCommand {
|
|
29
29
|
/**
|
|
30
30
|
* Creates a new `TableCellVerticalAlignmentCommand` instance.
|
|
31
31
|
*
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module table/tablecellproperties/tablecellpropertiesediting
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import TableEditing from './../tableediting.js';
|
|
10
|
-
import TableCellWidthEditing from '../tablecellwidth/tablecellwidthediting.js';
|
|
9
|
+
import { TableEditing } from './../tableediting.js';
|
|
10
|
+
import { TableCellWidthEditing } from '../tablecellwidth/tablecellwidthediting.js';
|
|
11
11
|
/**
|
|
12
12
|
* The table cell properties editing feature.
|
|
13
13
|
*
|
|
@@ -27,7 +27,7 @@ import TableCellWidthEditing from '../tablecellwidth/tablecellwidthediting.js';
|
|
|
27
27
|
* - horizontal and vertical alignment: the `'tableCellHorizontalAlignment'` and `'tableCellVerticalAlignment'` commands
|
|
28
28
|
* - width and height: the `'tableCellWidth'` and `'tableCellHeight'` commands
|
|
29
29
|
*/
|
|
30
|
-
export
|
|
30
|
+
export declare class TableCellPropertiesEditing extends Plugin {
|
|
31
31
|
/**
|
|
32
32
|
* @inheritDoc
|
|
33
33
|
*/
|