@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/tablelayout.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
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 { TableLayoutUI } from
|
|
10
|
-
import { TableLayoutEditing } from
|
|
11
|
-
import { TableColumnResize } from
|
|
6
|
+
* @module table/tablelayout
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { TableLayoutUI } from "./tablelayout/tablelayoutui.js";
|
|
10
|
+
import { TableLayoutEditing } from "./tablelayout/tablelayoutediting.js";
|
|
11
|
+
import { TableColumnResize } from "./tablecolumnresize.js";
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
* The table plugin.
|
|
14
|
+
*
|
|
15
|
+
* For a detailed overview, check the {@glink features/tables/layout-tables Layout table feature documentation}.
|
|
16
|
+
*/
|
|
17
17
|
export declare class TableLayout extends Plugin {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "TableLayout";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static override get isOfficialPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get requires(): PluginDependenciesOf<[TableColumnResize, TableLayoutEditing, TableLayoutUI]>;
|
|
30
30
|
}
|
|
@@ -1,64 +1,64 @@
|
|
|
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 { DomEventObserver, type ViewDocumentDomEventData } from
|
|
6
|
+
* @module table/tablemouse/mouseeventsobserver
|
|
7
|
+
*/
|
|
8
|
+
import { DomEventObserver, type ViewDocumentDomEventData } from "@ckeditor/ckeditor5-engine";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export declare class MouseEventsObserver extends DomEventObserver<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
10
|
+
* The mouse selection event observer.
|
|
11
|
+
*
|
|
12
|
+
* It registers listeners for the following DOM events:
|
|
13
|
+
*
|
|
14
|
+
* - `'mousemove'`
|
|
15
|
+
* - `'mouseleave'`
|
|
16
|
+
*
|
|
17
|
+
* Note that this observer is disabled by default. To enable this observer, it needs to be added to
|
|
18
|
+
* {@link module:engine/view/view~EditingView} using the {@link module:engine/view/view~EditingView#addObserver} method.
|
|
19
|
+
*
|
|
20
|
+
* The observer is registered by the {@link module:table/tableselection~TableSelection} plugin.
|
|
21
|
+
*
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
export declare class MouseEventsObserver extends DomEventObserver<"mousemove" | "mouseleave"> {
|
|
25
|
+
readonly domEventType: readonly ["mousemove", "mouseleave"];
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
onDomEvent(domEvent: MouseEvent): void;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
32
|
+
* Fired when the mouse is moved over one of the editables.
|
|
33
|
+
*
|
|
34
|
+
* Introduced by {@link module:table/tablemouse/mouseeventsobserver~MouseEventsObserver}.
|
|
35
|
+
*
|
|
36
|
+
* Note that this event is not available by default. To make it available,
|
|
37
|
+
* {@link module:table/tablemouse/mouseeventsobserver~MouseEventsObserver} needs to be added
|
|
38
|
+
* to {@link module:engine/view/view~EditingView} using the {@link module:engine/view/view~EditingView#addObserver} method.
|
|
39
|
+
*
|
|
40
|
+
* @see module:table/tablemouse/mouseeventsobserver~MouseEventsObserver
|
|
41
|
+
* @eventName module:engine/view/document~ViewDocument#mousemove
|
|
42
|
+
* @param data Event data.
|
|
43
|
+
*/
|
|
44
44
|
export type ViewDocumentTableMouseMoveEvent = {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
name: "mousemove";
|
|
46
|
+
args: [data: ViewDocumentDomEventData<MouseEvent>];
|
|
47
47
|
};
|
|
48
48
|
/**
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
49
|
+
* Fired when the mouse is moved out of one of the editables.
|
|
50
|
+
*
|
|
51
|
+
* Introduced by {@link module:table/tablemouse/mouseeventsobserver~MouseEventsObserver}.
|
|
52
|
+
*
|
|
53
|
+
* Note that this event is not available by default. To make it available,
|
|
54
|
+
* {@link module:table/tablemouse/mouseeventsobserver~MouseEventsObserver} needs to be added
|
|
55
|
+
* to {@link module:engine/view/view~EditingView} using the {@link module:engine/view/view~EditingView#addObserver} method.
|
|
56
|
+
*
|
|
57
|
+
* @see module:table/tablemouse/mouseeventsobserver~MouseEventsObserver
|
|
58
|
+
* @eventName module:engine/view/document~ViewDocument#mouseleave
|
|
59
|
+
* @param data Event data.
|
|
60
|
+
*/
|
|
61
61
|
export type ViewDocumentTableMouseLeaveEvent = {
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
name: "mouseleave";
|
|
63
|
+
args: [data: ViewDocumentDomEventData<MouseEvent>];
|
|
64
64
|
};
|
package/dist/tablemouse.d.ts
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
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 { TableSelection } from
|
|
10
|
-
import { TableUtils } from
|
|
6
|
+
* @module table/tablemouse
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { TableSelection } from "./tableselection.js";
|
|
10
|
+
import { TableUtils } from "./tableutils.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
* This plugin enables a table cells' selection with the mouse.
|
|
13
|
+
* It is loaded automatically by the {@link module:table/table~Table} plugin.
|
|
14
|
+
*/
|
|
15
15
|
export declare class TableMouse 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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
static get pluginName(): "TableMouse";
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static override get isOfficialPlugin(): true;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static get requires(): PluginDependenciesOf<[TableSelection, TableUtils]>;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
init(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Enables making cells selection by <kbd>Shift</kbd>+click. Creates a selection from the cell which previously held
|
|
34
|
+
* the selection to the cell which was clicked. It can be the same cell, in which case it selects a single cell.
|
|
35
|
+
*/
|
|
36
|
+
private _enableShiftClickSelection;
|
|
37
|
+
/**
|
|
38
|
+
* Enables making cells selection by dragging.
|
|
39
|
+
*
|
|
40
|
+
* The selection is made only on mousemove. Mouse tracking is started on mousedown.
|
|
41
|
+
* However, the cells selection is enabled only after the mouse cursor left the anchor cell.
|
|
42
|
+
* Thanks to that normal text selection within one cell works just fine. However, you can still select
|
|
43
|
+
* just one cell by leaving the anchor cell and moving back to it.
|
|
44
|
+
*/
|
|
45
|
+
private _enableMouseDragSelection;
|
|
46
|
+
/**
|
|
47
|
+
* Returns the model table cell element based on the target element of the passed DOM event.
|
|
48
|
+
*
|
|
49
|
+
* @returns Returns the table cell or `undefined`.
|
|
50
|
+
*/
|
|
51
|
+
private _getModelTableCellFromDomEvent;
|
|
52
52
|
}
|
|
@@ -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 type { Editor } from
|
|
9
|
-
import { TablePropertyCommand } from
|
|
6
|
+
* @module table/tableproperties/commands/tablealignmentcommand
|
|
7
|
+
*/
|
|
8
|
+
import type { Editor } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { TablePropertyCommand } from "./tablepropertycommand.js";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
* The table alignment command.
|
|
12
|
+
*
|
|
13
|
+
* The command is registered by the {@link module:table/tableproperties/tablepropertiesediting~TablePropertiesEditing} as
|
|
14
|
+
* the `'tableAlignment'` editor command.
|
|
15
|
+
*
|
|
16
|
+
* To change the alignment of the selected table, execute the command:
|
|
17
|
+
*
|
|
18
|
+
* ```ts
|
|
19
|
+
* editor.execute( 'tableAlignment', {
|
|
20
|
+
* value: 'right'
|
|
21
|
+
* } );
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
24
|
export declare class TableAlignmentCommand extends TablePropertyCommand {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Creates a new `TableAlignmentCommand` instance.
|
|
27
|
+
*
|
|
28
|
+
* @param editor An editor in which this command will be used.
|
|
29
|
+
* @param defaultValue The default value for the "alignment" attribute.
|
|
30
|
+
*/
|
|
31
|
+
constructor(editor: Editor, defaultValue: string);
|
|
32
32
|
}
|
|
@@ -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 type { Editor } from
|
|
9
|
-
import { TablePropertyCommand } from
|
|
6
|
+
* @module table/tableproperties/commands/tablebackgroundcolorcommand
|
|
7
|
+
*/
|
|
8
|
+
import type { Editor } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { TablePropertyCommand } from "./tablepropertycommand.js";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
* The table background color command.
|
|
12
|
+
*
|
|
13
|
+
* The command is registered by the {@link module:table/tableproperties/tablepropertiesediting~TablePropertiesEditing} as
|
|
14
|
+
* the `'tableBackgroundColor'` editor command.
|
|
15
|
+
*
|
|
16
|
+
* To change the background color of the selected table, execute the command:
|
|
17
|
+
*
|
|
18
|
+
* ```ts
|
|
19
|
+
* editor.execute( 'tableBackgroundColor', {
|
|
20
|
+
* value: '#f00'
|
|
21
|
+
* } );
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
24
|
export declare class TableBackgroundColorCommand extends TablePropertyCommand {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Creates a new `TableBackgroundColorCommand` instance.
|
|
27
|
+
*
|
|
28
|
+
* @param editor An editor in which this command will be used.
|
|
29
|
+
* @param defaultValue The default value of the attribute.
|
|
30
|
+
*/
|
|
31
|
+
constructor(editor: Editor, defaultValue: string);
|
|
32
32
|
}
|
|
@@ -1,37 +1,37 @@
|
|
|
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 type { ModelElement } from
|
|
9
|
-
import type { Editor } from
|
|
10
|
-
import { TablePropertyCommand } from
|
|
6
|
+
* @module table/tableproperties/commands/tablebordercolorcommand
|
|
7
|
+
*/
|
|
8
|
+
import type { ModelElement } from "@ckeditor/ckeditor5-engine";
|
|
9
|
+
import type { Editor } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { TablePropertyCommand } from "./tablepropertycommand.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
12
|
+
* The table border color command.
|
|
13
|
+
*
|
|
14
|
+
* The command is registered by the {@link module:table/tableproperties/tablepropertiesediting~TablePropertiesEditing} as
|
|
15
|
+
* the `'tableBorderColor'` editor command.
|
|
16
|
+
*
|
|
17
|
+
* To change the border color of the selected table, execute the command:
|
|
18
|
+
*
|
|
19
|
+
* ```ts
|
|
20
|
+
* editor.execute( 'tableBorderColor', {
|
|
21
|
+
* value: '#f00'
|
|
22
|
+
* } );
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
25
|
export declare class TableBorderColorCommand extends TablePropertyCommand {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Creates a new `TableBorderColorCommand` instance.
|
|
28
|
+
*
|
|
29
|
+
* @param editor An editor in which this command will be used.
|
|
30
|
+
* @param defaultValue The default value of the attribute.
|
|
31
|
+
*/
|
|
32
|
+
constructor(editor: Editor, defaultValue: string);
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
protected override _getValue(table: ModelElement): unknown;
|
|
37
37
|
}
|
|
@@ -1,37 +1,37 @@
|
|
|
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 type { ModelElement } from
|
|
9
|
-
import { TablePropertyCommand } from
|
|
10
|
-
import type { Editor } from
|
|
6
|
+
* @module table/tableproperties/commands/tableborderstylecommand
|
|
7
|
+
*/
|
|
8
|
+
import type { ModelElement } from "@ckeditor/ckeditor5-engine";
|
|
9
|
+
import { TablePropertyCommand } from "./tablepropertycommand.js";
|
|
10
|
+
import type { Editor } from "@ckeditor/ckeditor5-core";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
12
|
+
* The table style border command.
|
|
13
|
+
*
|
|
14
|
+
* The command is registered by the {@link module:table/tableproperties/tablepropertiesediting~TablePropertiesEditing} as
|
|
15
|
+
* the `'tableBorderStyle'` editor command.
|
|
16
|
+
*
|
|
17
|
+
* To change the border style of the selected table, execute the command:
|
|
18
|
+
*
|
|
19
|
+
* ```ts
|
|
20
|
+
* editor.execute( 'tableBorderStyle', {
|
|
21
|
+
* value: 'dashed'
|
|
22
|
+
* } );
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
25
|
export declare class TableBorderStyleCommand extends TablePropertyCommand {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Creates a new `TableBorderStyleCommand` instance.
|
|
28
|
+
*
|
|
29
|
+
* @param editor An editor in which this command will be used.
|
|
30
|
+
* @param defaultValue The default value of the attribute.
|
|
31
|
+
*/
|
|
32
|
+
constructor(editor: Editor, defaultValue: string);
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
protected override _getValue(table: ModelElement): unknown;
|
|
37
37
|
}
|
|
@@ -1,51 +1,51 @@
|
|
|
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 type { ModelElement } from
|
|
9
|
-
import type { Editor } from
|
|
10
|
-
import { TablePropertyCommand } from
|
|
6
|
+
* @module table/tableproperties/commands/tableborderwidthcommand
|
|
7
|
+
*/
|
|
8
|
+
import type { ModelElement } from "@ckeditor/ckeditor5-engine";
|
|
9
|
+
import type { Editor } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { TablePropertyCommand } from "./tablepropertycommand.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
12
|
+
* The table width border command.
|
|
13
|
+
*
|
|
14
|
+
* The command is registered by the {@link module:table/tableproperties/tablepropertiesediting~TablePropertiesEditing} as
|
|
15
|
+
* the `'tableBorderWidth'` editor command.
|
|
16
|
+
*
|
|
17
|
+
* To change the border width of the selected table, execute the command:
|
|
18
|
+
*
|
|
19
|
+
* ```ts
|
|
20
|
+
* editor.execute( 'tableBorderWidth', {
|
|
21
|
+
* value: '5px'
|
|
22
|
+
* } );
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* **Note**: This command adds the default `'px'` unit to numeric values. Executing:
|
|
26
|
+
*
|
|
27
|
+
* ```ts
|
|
28
|
+
* editor.execute( 'tableBorderWidth', {
|
|
29
|
+
* value: '5'
|
|
30
|
+
* } );
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* will set the `borderWidth` attribute to `'5px'` in the model.
|
|
34
|
+
*/
|
|
35
35
|
export declare class TableBorderWidthCommand extends TablePropertyCommand {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Creates a new `TableBorderWidthCommand` instance.
|
|
38
|
+
*
|
|
39
|
+
* @param editor An editor in which this command will be used.
|
|
40
|
+
* @param defaultValue The default value of the attribute.
|
|
41
|
+
*/
|
|
42
|
+
constructor(editor: Editor, defaultValue: string);
|
|
43
|
+
/**
|
|
44
|
+
* @inheritDoc
|
|
45
|
+
*/
|
|
46
|
+
protected override _getValue(table: ModelElement): string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* @inheritDoc
|
|
49
|
+
*/
|
|
50
|
+
protected override _getValueToSet(value: string | number | undefined): unknown;
|
|
51
51
|
}
|