@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/tableproperties.js
CHANGED
|
@@ -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
|
|
21
|
+
export class TableProperties extends Plugin {
|
|
22
22
|
/**
|
|
23
23
|
* @inheritDoc
|
|
24
24
|
*/
|
package/src/tableselection.d.ts
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
import type { Element, DocumentFragment } from 'ckeditor5/src/engine.js';
|
|
10
|
-
import TableUtils from './tableutils.js';
|
|
10
|
+
import { TableUtils } from './tableutils.js';
|
|
11
11
|
import '../theme/tableselection.css';
|
|
12
12
|
/**
|
|
13
13
|
* This plugin enables the advanced table cells, rows and columns selection.
|
|
14
14
|
* It is loaded automatically by the {@link module:table/table~Table} plugin.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export declare class TableSelection extends Plugin {
|
|
17
17
|
/**
|
|
18
18
|
* @inheritDoc
|
|
19
19
|
*/
|
package/src/tableselection.js
CHANGED
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
import { first } from 'ckeditor5/src/utils.js';
|
|
10
|
-
import TableWalker from './tablewalker.js';
|
|
11
|
-
import TableUtils from './tableutils.js';
|
|
10
|
+
import { TableWalker } from './tablewalker.js';
|
|
11
|
+
import { TableUtils } from './tableutils.js';
|
|
12
12
|
import { cropTableToDimensions, adjustLastRowIndex, adjustLastColumnIndex } from './utils/structure.js';
|
|
13
13
|
import '../theme/tableselection.css';
|
|
14
14
|
/**
|
|
15
15
|
* This plugin enables the advanced table cells, rows and columns selection.
|
|
16
16
|
* It is loaded automatically by the {@link module:table/table~Table} plugin.
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export class TableSelection extends Plugin {
|
|
19
19
|
/**
|
|
20
20
|
* @inheritDoc
|
|
21
21
|
*/
|
package/src/tabletoolbar.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { WidgetToolbarRepository } from 'ckeditor5/src/widget.js';
|
|
|
16
16
|
* Table content toolbar shows up when the selection is inside the content of a table. It creates its component based on the
|
|
17
17
|
* {@link module:table/tableconfig~TableConfig#contentToolbar `table.contentToolbar` configuration option}.
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export declare class TableToolbar extends Plugin {
|
|
20
20
|
/**
|
|
21
21
|
* @inheritDoc
|
|
22
22
|
*/
|
package/src/tabletoolbar.js
CHANGED
|
@@ -17,7 +17,7 @@ import { getSelectedTableWidget, getTableWidgetAncestor } from './utils/ui/widge
|
|
|
17
17
|
* Table content toolbar shows up when the selection is inside the content of a table. It creates its component based on the
|
|
18
18
|
* {@link module:table/tableconfig~TableConfig#contentToolbar `table.contentToolbar` configuration option}.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export class TableToolbar extends Plugin {
|
|
21
21
|
/**
|
|
22
22
|
* @inheritDoc
|
|
23
23
|
*/
|
package/src/tableui.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
|
|
|
17
17
|
*
|
|
18
18
|
* The `'tableColumn'`, `'tableRow'` and `'mergeTableCells'` dropdowns work best with {@link module:table/tabletoolbar~TableToolbar}.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export declare class TableUI extends Plugin {
|
|
21
21
|
/**
|
|
22
22
|
* @inheritDoc
|
|
23
23
|
*/
|
package/src/tableui.js
CHANGED
|
@@ -9,7 +9,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
|
|
|
9
9
|
import { IconTable, IconTableColumn, IconTableRow, IconTableMergeCell } from 'ckeditor5/src/icons.js';
|
|
10
10
|
import { addListToDropdown, createDropdown, ViewModel, SplitButtonView, SwitchButtonView, MenuBarMenuView } 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 UI plugin. It introduces:
|
|
15
15
|
*
|
|
@@ -21,7 +21,7 @@ import InsertTableView from './ui/inserttableview.js';
|
|
|
21
21
|
*
|
|
22
22
|
* The `'tableColumn'`, `'tableRow'` and `'mergeTableCells'` dropdowns work best with {@link module:table/tabletoolbar~TableToolbar}.
|
|
23
23
|
*/
|
|
24
|
-
export
|
|
24
|
+
export class TableUI extends Plugin {
|
|
25
25
|
/**
|
|
26
26
|
* @inheritDoc
|
|
27
27
|
*/
|
package/src/tableutils.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
6
|
import type { DocumentSelection, Element, Range, Selection, Writer } from 'ckeditor5/src/engine.js';
|
|
7
|
-
import TableWalker,
|
|
7
|
+
import { TableWalker, type TableWalkerOptions } from './tablewalker.js';
|
|
8
8
|
type IndexesObject = {
|
|
9
9
|
first: number;
|
|
10
10
|
last: number;
|
|
@@ -12,7 +12,7 @@ type IndexesObject = {
|
|
|
12
12
|
/**
|
|
13
13
|
* The table utilities plugin.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export declare class TableUtils extends Plugin {
|
|
16
16
|
/**
|
|
17
17
|
* @inheritDoc
|
|
18
18
|
*/
|
package/src/tableutils.js
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { CKEditorError } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
-
import TableWalker from './tablewalker.js';
|
|
10
|
+
import { TableWalker } from './tablewalker.js';
|
|
11
11
|
import { createEmptyTableCell, updateNumericAttribute } from './utils/common.js';
|
|
12
12
|
import { removeEmptyColumns, removeEmptyRows } from './utils/structure.js';
|
|
13
13
|
import { getTableColumnElements } from './tablecolumnresize/utils.js';
|
|
14
14
|
/**
|
|
15
15
|
* The table utilities plugin.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export class TableUtils extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
package/src/tablewalker.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export interface TableWalkerOptions {
|
|
|
43
43
|
* The table iterator class. It allows to iterate over table cells. For each cell the iterator yields
|
|
44
44
|
* {@link module:table/tablewalker~TableSlot} with proper table cell attributes.
|
|
45
45
|
*/
|
|
46
|
-
export
|
|
46
|
+
export declare class TableWalker implements IterableIterator<TableSlot> {
|
|
47
47
|
/**
|
|
48
48
|
* The walker's table element.
|
|
49
49
|
*
|
package/src/tablewalker.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* The table iterator class. It allows to iterate over table cells. For each cell the iterator yields
|
|
7
7
|
* {@link module:table/tablewalker~TableSlot} with proper table cell attributes.
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export class TableWalker {
|
|
10
10
|
/**
|
|
11
11
|
* The walker's table element.
|
|
12
12
|
*
|
|
@@ -20,7 +20,7 @@ export type ColorInputViewOptions = {
|
|
|
20
20
|
*
|
|
21
21
|
* @internal
|
|
22
22
|
*/
|
|
23
|
-
export
|
|
23
|
+
export declare class ColorInputView extends View implements FocusableView {
|
|
24
24
|
/**
|
|
25
25
|
* The value of the input.
|
|
26
26
|
*
|
package/src/ui/colorinputview.js
CHANGED
|
@@ -13,7 +13,7 @@ import './../../theme/inserttable.css';
|
|
|
13
13
|
*
|
|
14
14
|
* It renders a 10x10 grid to choose the inserted table size.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export declare class InsertTableView extends View {
|
|
17
17
|
/**
|
|
18
18
|
* A collection of table size box items.
|
|
19
19
|
*/
|
|
@@ -13,7 +13,7 @@ import './../../theme/inserttable.css';
|
|
|
13
13
|
*
|
|
14
14
|
* It renders a 10x10 grid to choose the inserted table size.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export class InsertTableView extends View {
|
|
17
17
|
/**
|
|
18
18
|
* A collection of table size box items.
|
|
19
19
|
*/
|
package/src/utils/common.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module table/utils/common
|
|
7
7
|
*/
|
|
8
8
|
import type { Conversion, Element, Item, Position, Schema, Writer, DocumentSelection } from 'ckeditor5/src/engine.js';
|
|
9
|
-
import type TableUtils from '../tableutils.js';
|
|
9
|
+
import { type TableUtils } from '../tableutils.js';
|
|
10
10
|
/**
|
|
11
11
|
* A common method to update the numeric value. If a value is the default one, it will be unset.
|
|
12
12
|
*
|
package/src/utils/common.js
CHANGED
|
@@ -52,6 +52,7 @@ export function enableProperty(schema, conversion, options) {
|
|
|
52
52
|
schema.extend('tableCell', {
|
|
53
53
|
allowAttributes: [modelAttribute]
|
|
54
54
|
});
|
|
55
|
+
schema.setAttributeProperties(modelAttribute, { isFormatting: true });
|
|
55
56
|
upcastStyleToAttribute(conversion, { viewElement: /^(td|th)$/, ...options });
|
|
56
57
|
downcastAttributeToStyle(conversion, { modelElement: 'tableCell', ...options });
|
|
57
58
|
}
|
package/src/utils/structure.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { Element, Writer } from 'ckeditor5/src/engine.js';
|
|
9
9
|
import { type TableSlot } from '../tablewalker.js';
|
|
10
|
-
import type TableUtils from '../tableutils.js';
|
|
10
|
+
import { type TableUtils } from '../tableutils.js';
|
|
11
11
|
/**
|
|
12
12
|
* Returns a cropped table according to given dimensions.
|
|
13
13
|
|
package/src/utils/structure.js
CHANGED
|
@@ -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 {
|
|
5
|
+
import { TableWalker } from '../tablewalker.js';
|
|
6
6
|
import { createEmptyTableCell, updateNumericAttribute } from './common.js';
|
|
7
7
|
/**
|
|
8
8
|
* Returns a cropped table according to given dimensions.
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { type ColorOption, type LabeledFieldView, type ListDropdownItemDefinition, type NormalizedColorOption, type ToolbarView, type View, type ColorPickerConfig } from 'ckeditor5/src/ui.js';
|
|
9
9
|
import { Collection, type LocaleTranslate } from 'ckeditor5/src/utils.js';
|
|
10
|
-
import type TableCellPropertiesView from '../../tablecellproperties/ui/tablecellpropertiesview.js';
|
|
11
|
-
import type TablePropertiesView from '../../tableproperties/ui/tablepropertiesview.js';
|
|
12
|
-
import ColorInputView from '../../ui/colorinputview.js';
|
|
10
|
+
import { type TableCellPropertiesView } from '../../tablecellproperties/ui/tablecellpropertiesview.js';
|
|
11
|
+
import { type TablePropertiesView } from '../../tableproperties/ui/tablepropertiesview.js';
|
|
12
|
+
import { ColorInputView } from '../../ui/colorinputview.js';
|
|
13
13
|
/**
|
|
14
14
|
* Returns an object containing pairs of CSS border style values and their localized UI
|
|
15
15
|
* labels. Used by {@link module:table/tablecellproperties/ui/tablecellpropertiesview~TableCellPropertiesView}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { ButtonView, ViewModel } from 'ckeditor5/src/ui.js';
|
|
9
9
|
import { Collection } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import { isColor, isLength, isPercentage } from 'ckeditor5/src/engine.js';
|
|
11
|
-
import ColorInputView from '../../ui/colorinputview.js';
|
|
11
|
+
import { ColorInputView } from '../../ui/colorinputview.js';
|
|
12
12
|
const isEmpty = (val) => val === '';
|
|
13
13
|
/**
|
|
14
14
|
* Returns an object containing pairs of CSS border style values and their localized UI
|
package/theme/tablecaption.css
CHANGED
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
.ck-content .table > figcaption {
|
|
16
16
|
display: table-caption;
|
|
17
17
|
caption-side: top;
|
|
18
|
-
word-break:
|
|
18
|
+
word-break: normal;
|
|
19
|
+
overflow-wrap: anywhere;
|
|
19
20
|
text-align: center;
|
|
20
21
|
color: var(--ck-color-selector-caption-text);
|
|
21
22
|
background-color: var(--ck-color-selector-caption-background);
|