@ckeditor/ckeditor5-table 0.0.0-nightly-20250605.0 → 0.0.0-nightly-20250606.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.
Files changed (165) hide show
  1. package/build/table.js +1 -1
  2. package/dist/index-content.css +2 -1
  3. package/dist/index.css +2 -1
  4. package/dist/index.css.map +1 -1
  5. package/dist/index.js +50 -6
  6. package/dist/index.js.map +1 -1
  7. package/package.json +9 -9
  8. package/src/commands/insertcolumncommand.d.ts +1 -1
  9. package/src/commands/insertcolumncommand.js +1 -1
  10. package/src/commands/insertrowcommand.d.ts +1 -1
  11. package/src/commands/insertrowcommand.js +1 -1
  12. package/src/commands/inserttablecommand.d.ts +1 -1
  13. package/src/commands/inserttablecommand.js +1 -1
  14. package/src/commands/inserttablelayoutcommand.d.ts +1 -1
  15. package/src/commands/inserttablelayoutcommand.js +1 -1
  16. package/src/commands/mergecellcommand.d.ts +1 -1
  17. package/src/commands/mergecellcommand.js +2 -2
  18. package/src/commands/mergecellscommand.d.ts +1 -1
  19. package/src/commands/mergecellscommand.js +2 -2
  20. package/src/commands/removecolumncommand.d.ts +1 -1
  21. package/src/commands/removecolumncommand.js +2 -2
  22. package/src/commands/removerowcommand.d.ts +1 -1
  23. package/src/commands/removerowcommand.js +1 -1
  24. package/src/commands/selectcolumncommand.d.ts +1 -1
  25. package/src/commands/selectcolumncommand.js +2 -2
  26. package/src/commands/selectrowcommand.d.ts +1 -1
  27. package/src/commands/selectrowcommand.js +1 -1
  28. package/src/commands/setheadercolumncommand.d.ts +1 -1
  29. package/src/commands/setheadercolumncommand.js +1 -1
  30. package/src/commands/setheaderrowcommand.d.ts +1 -1
  31. package/src/commands/setheaderrowcommand.js +1 -1
  32. package/src/commands/splitcellcommand.d.ts +1 -1
  33. package/src/commands/splitcellcommand.js +1 -1
  34. package/src/converters/downcast.d.ts +1 -1
  35. package/src/converters/downcast.js +1 -1
  36. package/src/converters/table-caption-post-fixer.d.ts +1 -1
  37. package/src/converters/table-caption-post-fixer.js +1 -1
  38. package/src/converters/table-cell-paragraph-post-fixer.d.ts +1 -1
  39. package/src/converters/table-cell-paragraph-post-fixer.js +1 -1
  40. package/src/converters/table-cell-refresh-handler.d.ts +1 -1
  41. package/src/converters/table-cell-refresh-handler.js +1 -1
  42. package/src/converters/table-headings-refresh-handler.d.ts +1 -1
  43. package/src/converters/table-headings-refresh-handler.js +2 -2
  44. package/src/converters/table-layout-post-fixer.d.ts +1 -1
  45. package/src/converters/table-layout-post-fixer.js +2 -2
  46. package/src/converters/upcasttable.d.ts +1 -1
  47. package/src/converters/upcasttable.js +1 -1
  48. package/src/index.d.ts +55 -55
  49. package/src/index.js +55 -24
  50. package/src/plaintableoutput.d.ts +2 -2
  51. package/src/plaintableoutput.js +2 -2
  52. package/src/table.d.ts +7 -7
  53. package/src/table.js +7 -7
  54. package/src/tablecaption/tablecaptionediting.d.ts +1 -1
  55. package/src/tablecaption/tablecaptionediting.js +3 -3
  56. package/src/tablecaption/tablecaptionui.d.ts +1 -1
  57. package/src/tablecaption/tablecaptionui.js +1 -1
  58. package/src/tablecaption/toggletablecaptioncommand.d.ts +1 -1
  59. package/src/tablecaption/toggletablecaptioncommand.js +1 -1
  60. package/src/tablecaption.d.ts +3 -3
  61. package/src/tablecaption.js +3 -3
  62. package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +2 -2
  63. package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.js +2 -2
  64. package/src/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +2 -2
  65. package/src/tablecellproperties/commands/tablecellbordercolorcommand.js +2 -2
  66. package/src/tablecellproperties/commands/tablecellborderstylecommand.d.ts +2 -2
  67. package/src/tablecellproperties/commands/tablecellborderstylecommand.js +2 -2
  68. package/src/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +2 -2
  69. package/src/tablecellproperties/commands/tablecellborderwidthcommand.js +2 -2
  70. package/src/tablecellproperties/commands/tablecellheightcommand.d.ts +2 -2
  71. package/src/tablecellproperties/commands/tablecellheightcommand.js +2 -2
  72. package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +2 -2
  73. package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.js +2 -2
  74. package/src/tablecellproperties/commands/tablecellpaddingcommand.d.ts +2 -2
  75. package/src/tablecellproperties/commands/tablecellpaddingcommand.js +2 -2
  76. package/src/tablecellproperties/commands/tablecellpropertycommand.d.ts +1 -1
  77. package/src/tablecellproperties/commands/tablecellpropertycommand.js +1 -1
  78. package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +2 -2
  79. package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.js +2 -2
  80. package/src/tablecellproperties/tablecellpropertiesediting.d.ts +3 -3
  81. package/src/tablecellproperties/tablecellpropertiesediting.js +16 -11
  82. package/src/tablecellproperties/tablecellpropertiesui.d.ts +2 -2
  83. package/src/tablecellproperties/tablecellpropertiesui.js +2 -2
  84. package/src/tablecellproperties/ui/tablecellpropertiesview.d.ts +2 -2
  85. package/src/tablecellproperties/ui/tablecellpropertiesview.js +1 -1
  86. package/src/tablecellproperties.d.ts +3 -3
  87. package/src/tablecellproperties.js +3 -3
  88. package/src/tablecellwidth/commands/tablecellwidthcommand.d.ts +2 -2
  89. package/src/tablecellwidth/commands/tablecellwidthcommand.js +2 -2
  90. package/src/tablecellwidth/tablecellwidthediting.d.ts +2 -2
  91. package/src/tablecellwidth/tablecellwidthediting.js +3 -3
  92. package/src/tableclipboard.d.ts +3 -3
  93. package/src/tableclipboard.js +4 -4
  94. package/src/tablecolumnresize/converters.d.ts +5 -1
  95. package/src/tablecolumnresize/converters.js +10 -0
  96. package/src/tablecolumnresize/tablecolumnresizeediting.d.ts +3 -3
  97. package/src/tablecolumnresize/tablecolumnresizeediting.js +13 -10
  98. package/src/tablecolumnresize/tablewidthscommand.d.ts +1 -1
  99. package/src/tablecolumnresize/tablewidthscommand.js +1 -1
  100. package/src/tablecolumnresize/utils.d.ts +1 -1
  101. package/src/tablecolumnresize/utils.js +2 -2
  102. package/src/tablecolumnresize.d.ts +3 -3
  103. package/src/tablecolumnresize.js +3 -3
  104. package/src/tableconfig.d.ts +1 -1
  105. package/src/tableediting.d.ts +2 -2
  106. package/src/tableediting.js +19 -19
  107. package/src/tablekeyboard.d.ts +3 -3
  108. package/src/tablekeyboard.js +4 -4
  109. package/src/tablelayout/commands/tabletypecommand.d.ts +1 -1
  110. package/src/tablelayout/commands/tabletypecommand.js +1 -1
  111. package/src/tablelayout/tablelayoutediting.d.ts +2 -2
  112. package/src/tablelayout/tablelayoutediting.js +4 -4
  113. package/src/tablelayout/tablelayoutui.d.ts +1 -1
  114. package/src/tablelayout/tablelayoutui.js +2 -2
  115. package/src/tablelayout.d.ts +5 -5
  116. package/src/tablelayout.js +5 -5
  117. package/src/tablemouse/mouseeventsobserver.d.ts +1 -1
  118. package/src/tablemouse/mouseeventsobserver.js +1 -1
  119. package/src/tablemouse.d.ts +3 -3
  120. package/src/tablemouse.js +4 -4
  121. package/src/tableproperties/commands/tablealignmentcommand.d.ts +2 -2
  122. package/src/tableproperties/commands/tablealignmentcommand.js +2 -2
  123. package/src/tableproperties/commands/tablebackgroundcolorcommand.d.ts +2 -2
  124. package/src/tableproperties/commands/tablebackgroundcolorcommand.js +2 -2
  125. package/src/tableproperties/commands/tablebordercolorcommand.d.ts +2 -2
  126. package/src/tableproperties/commands/tablebordercolorcommand.js +2 -2
  127. package/src/tableproperties/commands/tableborderstylecommand.d.ts +2 -2
  128. package/src/tableproperties/commands/tableborderstylecommand.js +2 -2
  129. package/src/tableproperties/commands/tableborderwidthcommand.d.ts +2 -2
  130. package/src/tableproperties/commands/tableborderwidthcommand.js +2 -2
  131. package/src/tableproperties/commands/tableheightcommand.d.ts +2 -2
  132. package/src/tableproperties/commands/tableheightcommand.js +2 -2
  133. package/src/tableproperties/commands/tablepropertycommand.d.ts +1 -1
  134. package/src/tableproperties/commands/tablepropertycommand.js +1 -1
  135. package/src/tableproperties/commands/tablewidthcommand.d.ts +2 -2
  136. package/src/tableproperties/commands/tablewidthcommand.js +2 -2
  137. package/src/tableproperties/tablepropertiesediting.d.ts +2 -2
  138. package/src/tableproperties/tablepropertiesediting.js +15 -9
  139. package/src/tableproperties/tablepropertiesui.d.ts +2 -2
  140. package/src/tableproperties/tablepropertiesui.js +2 -2
  141. package/src/tableproperties/ui/tablepropertiesview.d.ts +2 -2
  142. package/src/tableproperties/ui/tablepropertiesview.js +1 -1
  143. package/src/tableproperties.d.ts +3 -3
  144. package/src/tableproperties.js +3 -3
  145. package/src/tableselection.d.ts +2 -2
  146. package/src/tableselection.js +3 -3
  147. package/src/tabletoolbar.d.ts +1 -1
  148. package/src/tabletoolbar.js +1 -1
  149. package/src/tableui.d.ts +1 -1
  150. package/src/tableui.js +2 -2
  151. package/src/tableutils.d.ts +2 -2
  152. package/src/tableutils.js +2 -2
  153. package/src/tablewalker.d.ts +1 -1
  154. package/src/tablewalker.js +1 -1
  155. package/src/ui/colorinputview.d.ts +1 -1
  156. package/src/ui/colorinputview.js +1 -1
  157. package/src/ui/inserttableview.d.ts +1 -1
  158. package/src/ui/inserttableview.js +1 -1
  159. package/src/utils/common.d.ts +1 -1
  160. package/src/utils/common.js +1 -0
  161. package/src/utils/structure.d.ts +1 -1
  162. package/src/utils/structure.js +1 -1
  163. package/src/utils/ui/table-properties.d.ts +3 -3
  164. package/src/utils/ui/table-properties.js +1 -1
  165. package/theme/tablecaption.css +2 -1
@@ -6,12 +6,12 @@
6
6
  * @module table/tablelayout/tablelayoutediting
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import TableColumnResize from '../tablecolumnresize.js';
9
+ import { TableColumnResize } from '../tablecolumnresize.js';
10
10
  import '../../theme/tablelayout.css';
11
11
  /**
12
12
  * The table layout editing plugin.
13
13
  */
14
- export default class TableLayoutEditing extends Plugin {
14
+ export declare class TableLayoutEditing extends Plugin {
15
15
  /**
16
16
  * @inheritDoc
17
17
  */
@@ -6,16 +6,16 @@
6
6
  * @module table/tablelayout/tablelayoutediting
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import InsertTableLayoutCommand from './../commands/inserttablelayoutcommand.js';
10
- import TableColumnResize from '../tablecolumnresize.js';
11
- import TableTypeCommand from './commands/tabletypecommand.js';
9
+ import { InsertTableLayoutCommand } from './../commands/inserttablelayoutcommand.js';
10
+ import { TableColumnResize } from '../tablecolumnresize.js';
11
+ import { TableTypeCommand } from './commands/tabletypecommand.js';
12
12
  import { createEmptyTableCell } from '../utils/common.js';
13
13
  import '../../theme/tablelayout.css';
14
14
  const TABLE_TYPES = ['content', 'layout'];
15
15
  /**
16
16
  * The table layout editing plugin.
17
17
  */
18
- export default class TableLayoutEditing extends Plugin {
18
+ export class TableLayoutEditing extends Plugin {
19
19
  /**
20
20
  * @inheritDoc
21
21
  */
@@ -12,7 +12,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
12
12
  * * The `'insertTableLayout'` dropdown,
13
13
  * * The `'menuBar:insertTableLayout'` menu bar menu.
14
14
  */
15
- export default class TableLayoutUI extends Plugin {
15
+ export declare class TableLayoutUI extends Plugin {
16
16
  /**
17
17
  * @inheritDoc
18
18
  */
@@ -9,14 +9,14 @@ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  import { IconTableLayout, IconTableProperties } from 'ckeditor5/src/icons.js';
10
10
  import { createDropdown, addListToDropdown, MenuBarMenuView, SplitButtonView, DropdownButtonView, ViewModel } from 'ckeditor5/src/ui.js';
11
11
  import { Collection } from 'ckeditor5/src/utils.js';
12
- import InsertTableView from '../ui/inserttableview.js';
12
+ import { InsertTableView } from '../ui/inserttableview.js';
13
13
  /**
14
14
  * The table layout UI plugin. It introduces:
15
15
  *
16
16
  * * The `'insertTableLayout'` dropdown,
17
17
  * * The `'menuBar:insertTableLayout'` menu bar menu.
18
18
  */
19
- export default class TableLayoutUI extends Plugin {
19
+ export class TableLayoutUI extends Plugin {
20
20
  /**
21
21
  * @inheritDoc
22
22
  */
@@ -6,16 +6,16 @@
6
6
  * @module table/tablelayout
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import TableLayoutUI from './tablelayout/tablelayoutui.js';
10
- import TableLayoutEditing from './tablelayout/tablelayoutediting.js';
11
- import PlainTableOutput from './plaintableoutput.js';
12
- import TableColumnResize from './tablecolumnresize.js';
9
+ import { TableLayoutUI } from './tablelayout/tablelayoutui.js';
10
+ import { TableLayoutEditing } from './tablelayout/tablelayoutediting.js';
11
+ import { PlainTableOutput } from './plaintableoutput.js';
12
+ import { TableColumnResize } from './tablecolumnresize.js';
13
13
  /**
14
14
  * The table plugin.
15
15
  *
16
16
  * For a detailed overview, check the {@glink features/tables/layout-tables Layout table feature documentation}.
17
17
  */
18
- export default class TableLayout extends Plugin {
18
+ export declare class TableLayout extends Plugin {
19
19
  /**
20
20
  * @inheritDoc
21
21
  */
@@ -6,16 +6,16 @@
6
6
  * @module table/tablelayout
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import TableLayoutUI from './tablelayout/tablelayoutui.js';
10
- import TableLayoutEditing from './tablelayout/tablelayoutediting.js';
11
- import PlainTableOutput from './plaintableoutput.js';
12
- import TableColumnResize from './tablecolumnresize.js';
9
+ import { TableLayoutUI } from './tablelayout/tablelayoutui.js';
10
+ import { TableLayoutEditing } from './tablelayout/tablelayoutediting.js';
11
+ import { PlainTableOutput } from './plaintableoutput.js';
12
+ import { TableColumnResize } from './tablecolumnresize.js';
13
13
  /**
14
14
  * The table plugin.
15
15
  *
16
16
  * For a detailed overview, check the {@glink features/tables/layout-tables Layout table feature documentation}.
17
17
  */
18
- export default class TableLayout extends Plugin {
18
+ export class TableLayout extends Plugin {
19
19
  /**
20
20
  * @inheritDoc
21
21
  */
@@ -19,7 +19,7 @@ import { DomEventObserver, type DomEventData } from 'ckeditor5/src/engine.js';
19
19
  *
20
20
  * The observer is registered by the {@link module:table/tableselection~TableSelection} plugin.
21
21
  */
22
- export default class MouseEventsObserver extends DomEventObserver<'mousemove' | 'mouseleave'> {
22
+ export declare class MouseEventsObserver extends DomEventObserver<'mousemove' | 'mouseleave'> {
23
23
  readonly domEventType: readonly ["mousemove", "mouseleave"];
24
24
  /**
25
25
  * @inheritDoc
@@ -19,7 +19,7 @@ import { DomEventObserver } from 'ckeditor5/src/engine.js';
19
19
  *
20
20
  * The observer is registered by the {@link module:table/tableselection~TableSelection} plugin.
21
21
  */
22
- export default class MouseEventsObserver extends DomEventObserver {
22
+ export class MouseEventsObserver extends DomEventObserver {
23
23
  domEventType = [
24
24
  'mousemove', 'mouseleave'
25
25
  ];
@@ -6,13 +6,13 @@
6
6
  * @module table/tablemouse
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import TableSelection from './tableselection.js';
10
- import TableUtils from './tableutils.js';
9
+ import { TableSelection } from './tableselection.js';
10
+ import { TableUtils } from './tableutils.js';
11
11
  /**
12
12
  * This plugin enables a table cells' selection with the mouse.
13
13
  * It is loaded automatically by the {@link module:table/table~Table} plugin.
14
14
  */
15
- export default class TableMouse extends Plugin {
15
+ export declare class TableMouse extends Plugin {
16
16
  /**
17
17
  * @inheritDoc
18
18
  */
package/src/tablemouse.js CHANGED
@@ -6,14 +6,14 @@
6
6
  * @module table/tablemouse
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import TableSelection from './tableselection.js';
10
- import MouseEventsObserver from './tablemouse/mouseeventsobserver.js';
11
- import TableUtils from './tableutils.js';
9
+ import { TableSelection } from './tableselection.js';
10
+ import { MouseEventsObserver } from './tablemouse/mouseeventsobserver.js';
11
+ import { TableUtils } from './tableutils.js';
12
12
  /**
13
13
  * This plugin enables a table cells' selection with the mouse.
14
14
  * It is loaded automatically by the {@link module:table/table~Table} plugin.
15
15
  */
16
- export default class TableMouse extends Plugin {
16
+ export class TableMouse extends Plugin {
17
17
  /**
18
18
  * @inheritDoc
19
19
  */
@@ -6,7 +6,7 @@
6
6
  * @module table/tableproperties/commands/tablealignmentcommand
7
7
  */
8
8
  import type { Editor } from 'ckeditor5/src/core.js';
9
- import TablePropertyCommand from './tablepropertycommand.js';
9
+ import { TablePropertyCommand } from './tablepropertycommand.js';
10
10
  /**
11
11
  * The table alignment command.
12
12
  *
@@ -21,7 +21,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
21
21
  * } );
22
22
  * ```
23
23
  */
24
- export default class TableAlignmentCommand extends TablePropertyCommand {
24
+ export declare class TableAlignmentCommand extends TablePropertyCommand {
25
25
  /**
26
26
  * Creates a new `TableAlignmentCommand` 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 TablePropertyCommand from './tablepropertycommand.js';
5
+ import { TablePropertyCommand } from './tablepropertycommand.js';
6
6
  /**
7
7
  * The table alignment command.
8
8
  *
@@ -17,7 +17,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
17
17
  * } );
18
18
  * ```
19
19
  */
20
- export default class TableAlignmentCommand extends TablePropertyCommand {
20
+ export class TableAlignmentCommand extends TablePropertyCommand {
21
21
  /**
22
22
  * Creates a new `TableAlignmentCommand` instance.
23
23
  *
@@ -6,7 +6,7 @@
6
6
  * @module table/tableproperties/commands/tablebackgroundcolorcommand
7
7
  */
8
8
  import type { Editor } from 'ckeditor5/src/core.js';
9
- import TablePropertyCommand from './tablepropertycommand.js';
9
+ import { TablePropertyCommand } from './tablepropertycommand.js';
10
10
  /**
11
11
  * The table background color command.
12
12
  *
@@ -21,7 +21,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
21
21
  * } );
22
22
  * ```
23
23
  */
24
- export default class TableBackgroundColorCommand extends TablePropertyCommand {
24
+ export declare class TableBackgroundColorCommand extends TablePropertyCommand {
25
25
  /**
26
26
  * Creates a new `TableBackgroundColorCommand` 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 TablePropertyCommand from './tablepropertycommand.js';
5
+ import { TablePropertyCommand } from './tablepropertycommand.js';
6
6
  /**
7
7
  * The table background color command.
8
8
  *
@@ -17,7 +17,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
17
17
  * } );
18
18
  * ```
19
19
  */
20
- export default class TableBackgroundColorCommand extends TablePropertyCommand {
20
+ export class TableBackgroundColorCommand extends TablePropertyCommand {
21
21
  /**
22
22
  * Creates a new `TableBackgroundColorCommand` 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 TablePropertyCommand from './tablepropertycommand.js';
10
+ import { TablePropertyCommand } from './tablepropertycommand.js';
11
11
  /**
12
12
  * The table border color command.
13
13
  *
@@ -22,7 +22,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
22
22
  * } );
23
23
  * ```
24
24
  */
25
- export default class TableBorderColorCommand extends TablePropertyCommand {
25
+ export declare class TableBorderColorCommand extends TablePropertyCommand {
26
26
  /**
27
27
  * Creates a new `TableBorderColorCommand` 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 TablePropertyCommand from './tablepropertycommand.js';
5
+ import { TablePropertyCommand } from './tablepropertycommand.js';
6
6
  import { getSingleValue } from '../../utils/table-properties.js';
7
7
  /**
8
8
  * The table border color command.
@@ -18,7 +18,7 @@ import { getSingleValue } from '../../utils/table-properties.js';
18
18
  * } );
19
19
  * ```
20
20
  */
21
- export default class TableBorderColorCommand extends TablePropertyCommand {
21
+ export class TableBorderColorCommand extends TablePropertyCommand {
22
22
  /**
23
23
  * Creates a new `TableBorderColorCommand` instance.
24
24
  *
@@ -6,7 +6,7 @@
6
6
  * @module table/tableproperties/commands/tableborderstylecommand
7
7
  */
8
8
  import type { Element } from 'ckeditor5/src/engine.js';
9
- import TablePropertyCommand from './tablepropertycommand.js';
9
+ import { TablePropertyCommand } from './tablepropertycommand.js';
10
10
  import type { Editor } from 'ckeditor5/src/core.js';
11
11
  /**
12
12
  * The table style border command.
@@ -22,7 +22,7 @@ import type { Editor } from 'ckeditor5/src/core.js';
22
22
  * } );
23
23
  * ```
24
24
  */
25
- export default class TableBorderStyleCommand extends TablePropertyCommand {
25
+ export declare class TableBorderStyleCommand extends TablePropertyCommand {
26
26
  /**
27
27
  * Creates a new `TableBorderStyleCommand` 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 TablePropertyCommand from './tablepropertycommand.js';
5
+ import { TablePropertyCommand } from './tablepropertycommand.js';
6
6
  import { getSingleValue } from '../../utils/table-properties.js';
7
7
  /**
8
8
  * The table style border command.
@@ -18,7 +18,7 @@ import { getSingleValue } from '../../utils/table-properties.js';
18
18
  * } );
19
19
  * ```
20
20
  */
21
- export default class TableBorderStyleCommand extends TablePropertyCommand {
21
+ export class TableBorderStyleCommand extends TablePropertyCommand {
22
22
  /**
23
23
  * Creates a new `TableBorderStyleCommand` instance.
24
24
  *
@@ -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 TablePropertyCommand from './tablepropertycommand.js';
10
+ import { TablePropertyCommand } from './tablepropertycommand.js';
11
11
  /**
12
12
  * The table width border command.
13
13
  *
@@ -32,7 +32,7 @@ import TablePropertyCommand from './tablepropertycommand.js';
32
32
  *
33
33
  * will set the `borderWidth` attribute to `'5px'` in the model.
34
34
  */
35
- export default class TableBorderWidthCommand extends TablePropertyCommand {
35
+ export declare class TableBorderWidthCommand extends TablePropertyCommand {
36
36
  /**
37
37
  * Creates a new `TableBorderWidthCommand` 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 TablePropertyCommand from './tablepropertycommand.js';
5
+ import { TablePropertyCommand } from './tablepropertycommand.js';
6
6
  import { addDefaultUnitToNumericValue, getSingleValue } from '../../utils/table-properties.js';
7
7
  /**
8
8
  * The table width border 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 default class TableBorderWidthCommand extends TablePropertyCommand {
31
+ export class TableBorderWidthCommand extends TablePropertyCommand {
32
32
  /**
33
33
  * Creates a new `TableBorderWidthCommand` instance.
34
34
  *
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tableheightcommand
7
7
  */
8
- import TablePropertyCommand from './tablepropertycommand.js';
8
+ import { TablePropertyCommand } from './tablepropertycommand.js';
9
9
  import type { Editor } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * The table height command.
@@ -31,7 +31,7 @@ import type { Editor } from 'ckeditor5/src/core.js';
31
31
  *
32
32
  * will set the `height` attribute to `'50px'` in the model.
33
33
  */
34
- export default class TableHeightCommand extends TablePropertyCommand {
34
+ export declare class TableHeightCommand extends TablePropertyCommand {
35
35
  /**
36
36
  * Creates a new `TableHeightCommand` instance.
37
37
  *
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tableheightcommand
7
7
  */
8
- import TablePropertyCommand from './tablepropertycommand.js';
8
+ import { TablePropertyCommand } from './tablepropertycommand.js';
9
9
  import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
10
10
  /**
11
11
  * The table height command.
@@ -31,7 +31,7 @@ import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
31
31
  *
32
32
  * will set the `height` attribute to `'50px'` in the model.
33
33
  */
34
- export default class TableHeightCommand extends TablePropertyCommand {
34
+ export class TableHeightCommand extends TablePropertyCommand {
35
35
  /**
36
36
  * Creates a new `TableHeightCommand` instance.
37
37
  *
@@ -19,7 +19,7 @@ export interface TablePropertyCommandExecuteOptions {
19
19
  *
20
20
  * This command is a base command for other table property commands.
21
21
  */
22
- export default class TablePropertyCommand extends Command {
22
+ export declare class TablePropertyCommand extends Command {
23
23
  /**
24
24
  * The attribute that will be set by the command.
25
25
  */
@@ -9,7 +9,7 @@ import { getSelectionAffectedTable } from '../../utils/common.js';
9
9
  *
10
10
  * This command is a base command for other table property commands.
11
11
  */
12
- export default class TablePropertyCommand extends Command {
12
+ export class TablePropertyCommand extends Command {
13
13
  /**
14
14
  * The attribute that will be set by the command.
15
15
  */
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tablewidthcommand
7
7
  */
8
- import TablePropertyCommand from './tablepropertycommand.js';
8
+ import { TablePropertyCommand } from './tablepropertycommand.js';
9
9
  import type { Editor } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * The table width command.
@@ -31,7 +31,7 @@ import type { Editor } from 'ckeditor5/src/core.js';
31
31
  *
32
32
  * will set the `width` attribute to `'50px'` in the model.
33
33
  */
34
- export default class TableWidthCommand extends TablePropertyCommand {
34
+ export declare class TableWidthCommand extends TablePropertyCommand {
35
35
  /**
36
36
  * Creates a new `TableWidthCommand` instance.
37
37
  *
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module table/tableproperties/commands/tablewidthcommand
7
7
  */
8
- import TablePropertyCommand from './tablepropertycommand.js';
8
+ import { TablePropertyCommand } from './tablepropertycommand.js';
9
9
  import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
10
10
  /**
11
11
  * The table width command.
@@ -31,7 +31,7 @@ import { addDefaultUnitToNumericValue } from '../../utils/table-properties.js';
31
31
  *
32
32
  * will set the `width` attribute to `'50px'` in the model.
33
33
  */
34
- export default class TableWidthCommand extends TablePropertyCommand {
34
+ export class TableWidthCommand extends TablePropertyCommand {
35
35
  /**
36
36
  * Creates a new `TableWidthCommand` instance.
37
37
  *
@@ -6,7 +6,7 @@
6
6
  * @module table/tableproperties/tablepropertiesediting
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import TableEditing from '../tableediting.js';
9
+ import { TableEditing } from '../tableediting.js';
10
10
  /**
11
11
  * The table properties editing feature.
12
12
  *
@@ -24,7 +24,7 @@ import TableEditing from '../tableediting.js';
24
24
  * - horizontal alignment: `'tableAlignment'`
25
25
  * - width & height: `'tableWidth'` & `'tableHeight'`
26
26
  */
27
- export default class TablePropertiesEditing extends Plugin {
27
+ export declare class TablePropertiesEditing extends Plugin {
28
28
  /**
29
29
  * @inheritDoc
30
30
  */
@@ -7,15 +7,15 @@
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
9
  import { addBackgroundRules, addBorderRules } from 'ckeditor5/src/engine.js';
10
- import TableEditing from '../tableediting.js';
10
+ import { TableEditing } from '../tableediting.js';
11
11
  import { downcastAttributeToStyle, downcastTableAttribute, getDefaultValueAdjusted, upcastBorderStyles, upcastStyleToAttribute } from '../converters/tableproperties.js';
12
- import TableBackgroundColorCommand from './commands/tablebackgroundcolorcommand.js';
13
- import TableBorderColorCommand from './commands/tablebordercolorcommand.js';
14
- import TableBorderStyleCommand from './commands/tableborderstylecommand.js';
15
- import TableBorderWidthCommand from './commands/tableborderwidthcommand.js';
16
- import TableWidthCommand from './commands/tablewidthcommand.js';
17
- import TableHeightCommand from './commands/tableheightcommand.js';
18
- import TableAlignmentCommand from './commands/tablealignmentcommand.js';
12
+ import { TableBackgroundColorCommand } from './commands/tablebackgroundcolorcommand.js';
13
+ import { TableBorderColorCommand } from './commands/tablebordercolorcommand.js';
14
+ import { TableBorderStyleCommand } from './commands/tableborderstylecommand.js';
15
+ import { TableBorderWidthCommand } from './commands/tableborderwidthcommand.js';
16
+ import { TableWidthCommand } from './commands/tablewidthcommand.js';
17
+ import { TableHeightCommand } from './commands/tableheightcommand.js';
18
+ import { TableAlignmentCommand } from './commands/tablealignmentcommand.js';
19
19
  import { getNormalizedDefaultTableProperties } from '../utils/table-properties.js';
20
20
  const ALIGN_VALUES_REG_EXP = /^(left|center|right)$/;
21
21
  const FLOAT_VALUES_REG_EXP = /^(left|none|right)$/;
@@ -36,7 +36,7 @@ const FLOAT_VALUES_REG_EXP = /^(left|none|right)$/;
36
36
  * - horizontal alignment: `'tableAlignment'`
37
37
  * - width & height: `'tableWidth'` & `'tableHeight'`
38
38
  */
39
- export default class TablePropertiesEditing extends Plugin {
39
+ export class TablePropertiesEditing extends Plugin {
40
40
  /**
41
41
  * @inheritDoc
42
42
  */
@@ -121,6 +121,9 @@ function enableBorderProperties(schema, conversion, defaultBorder) {
121
121
  schema.extend('table', {
122
122
  allowAttributes: Object.values(modelAttributes)
123
123
  });
124
+ for (const modelAttribute of Object.values(modelAttributes)) {
125
+ schema.setAttributeProperties(modelAttribute, { isFormatting: true });
126
+ }
124
127
  upcastBorderStyles(conversion, 'table', modelAttributes, defaultBorder);
125
128
  downcastTableAttribute(conversion, { modelAttribute: modelAttributes.color, styleName: 'border-color' });
126
129
  downcastTableAttribute(conversion, { modelAttribute: modelAttributes.style, styleName: 'border-style' });
@@ -135,6 +138,7 @@ function enableAlignmentProperty(schema, conversion, defaultValue) {
135
138
  schema.extend('table', {
136
139
  allowAttributes: ['tableAlignment']
137
140
  });
141
+ schema.setAttributeProperties('tableAlignment', { isFormatting: true });
138
142
  conversion.for('downcast')
139
143
  .attributeToAttribute({
140
144
  model: {
@@ -259,6 +263,7 @@ function enableProperty(schema, conversion, options) {
259
263
  schema.extend('table', {
260
264
  allowAttributes: [modelAttribute]
261
265
  });
266
+ schema.setAttributeProperties(modelAttribute, { isFormatting: true });
262
267
  upcastStyleToAttribute(conversion, { viewElement: 'table', ...options });
263
268
  downcastTableAttribute(conversion, options);
264
269
  }
@@ -270,6 +275,7 @@ function enableTableToFigureProperty(schema, conversion, options) {
270
275
  schema.extend('table', {
271
276
  allowAttributes: [modelAttribute]
272
277
  });
278
+ schema.setAttributeProperties(modelAttribute, { isFormatting: true });
273
279
  upcastStyleToAttribute(conversion, { viewElement: /^(table|figure)$/, ...options });
274
280
  downcastAttributeToStyle(conversion, { modelElement: 'table', ...options });
275
281
  }
@@ -7,14 +7,14 @@
7
7
  */
8
8
  import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
9
  import { ButtonView, ContextualBalloon } from 'ckeditor5/src/ui.js';
10
- import TablePropertiesView from './ui/tablepropertiesview.js';
10
+ import { TablePropertiesView } from './ui/tablepropertiesview.js';
11
11
  /**
12
12
  * The table properties UI plugin. It introduces the `'tableProperties'` button
13
13
  * that opens a form allowing to specify visual styling of an entire table.
14
14
  *
15
15
  * It uses the {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon contextual balloon plugin}.
16
16
  */
17
- export default class TablePropertiesUI extends Plugin {
17
+ export declare class TablePropertiesUI extends Plugin {
18
18
  /**
19
19
  * The default table properties.
20
20
  */
@@ -9,7 +9,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  import { IconTableProperties } from 'ckeditor5/src/icons.js';
10
10
  import { ButtonView, ContextualBalloon, clickOutsideHandler, getLocalizedColorOptions, normalizeColorOptions } from 'ckeditor5/src/ui.js';
11
11
  import { debounce } from 'es-toolkit/compat';
12
- import TablePropertiesView from './ui/tablepropertiesview.js';
12
+ import { TablePropertiesView } from './ui/tablepropertiesview.js';
13
13
  import { colorFieldValidator, getLocalizedColorErrorText, getLocalizedLengthErrorText, lengthFieldValidator, lineWidthFieldValidator, defaultColors } from '../utils/ui/table-properties.js';
14
14
  import { getSelectionAffectedTableWidget } from '../utils/ui/widget.js';
15
15
  import { getBalloonTablePositionData, repositionContextualBalloon } from '../utils/ui/contextualballoon.js';
@@ -31,7 +31,7 @@ const propertyToCommandMap = {
31
31
  *
32
32
  * It uses the {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon contextual balloon plugin}.
33
33
  */
34
- export default class TablePropertiesUI extends Plugin {
34
+ export class TablePropertiesUI extends Plugin {
35
35
  /**
36
36
  * The default table properties.
37
37
  */
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { ButtonView, FocusCycler, LabeledFieldView, ToolbarView, View, ViewCollection, type DropdownView, type InputTextView, type NormalizedColorOption, type ColorPickerConfig, type FocusableView } from 'ckeditor5/src/ui.js';
9
9
  import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
10
- import type ColorInputView from '../../ui/colorinputview.js';
10
+ import { type ColorInputView } from '../../ui/colorinputview.js';
11
11
  import type { TablePropertiesOptions } from '../../tableconfig.js';
12
12
  import '@ckeditor/ckeditor5-ui/theme/components/form/form.css';
13
13
  import '../../../theme/formrow.css';
@@ -40,7 +40,7 @@ export interface TablePropertiesViewOptions {
40
40
  * The class representing a table properties form, allowing users to customize
41
41
  * certain style aspects of a table, for instance, border, background color, alignment, etc..
42
42
  */
43
- export default class TablePropertiesView extends View {
43
+ export declare class TablePropertiesView extends View {
44
44
  /**
45
45
  * The value of the border style.
46
46
  *
@@ -18,7 +18,7 @@ import '../../../theme/tableproperties.css';
18
18
  * The class representing a table properties form, allowing users to customize
19
19
  * certain style aspects of a table, for instance, border, background color, alignment, etc..
20
20
  */
21
- export default class TablePropertiesView extends View {
21
+ export class TablePropertiesView extends View {
22
22
  /**
23
23
  * Options passed to the view. See {@link #constructor} to learn more.
24
24
  */
@@ -6,8 +6,8 @@
6
6
  * @module table/tableproperties
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import TablePropertiesEditing from './tableproperties/tablepropertiesediting.js';
10
- import TablePropertiesUI from './tableproperties/tablepropertiesui.js';
9
+ import { TablePropertiesEditing } from './tableproperties/tablepropertiesediting.js';
10
+ import { TablePropertiesUI } from './tableproperties/tablepropertiesui.js';
11
11
  /**
12
12
  * The table properties feature. Enables support for setting properties of tables (size, border, background, etc.).
13
13
  *
@@ -18,7 +18,7 @@ import TablePropertiesUI from './tableproperties/tablepropertiesui.js';
18
18
  * {@link module:table/tableproperties/tablepropertiesediting~TablePropertiesEditing table properties editing feature} and
19
19
  * the {@link module:table/tableproperties/tablepropertiesui~TablePropertiesUI table properties UI feature}.
20
20
  */
21
- export default class TableProperties extends Plugin {
21
+ export declare class TableProperties extends Plugin {
22
22
  /**
23
23
  * @inheritDoc
24
24
  */