1 | /**
|
2 | * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3 | * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4 | */
|
5 | /**
|
6 | * @module table/tablecellproperties/tablecellpropertiesediting
|
7 | */
|
8 | import { Plugin } from 'ckeditor5/src/core';
|
9 | import TableEditing from './../tableediting';
|
10 | import TableCellWidthEditing from '../tablecellwidth/tablecellwidthediting';
|
11 | /**
|
12 | * The table cell properties editing feature.
|
13 | *
|
14 | * Introduces table cell model attributes and their conversion:
|
15 | *
|
16 | * - border: `tableCellBorderStyle`, `tableCellBorderColor` and `tableCellBorderWidth`
|
17 | * - background color: `tableCellBackgroundColor`
|
18 | * - cell padding: `tableCellPadding`
|
19 | * - horizontal and vertical alignment: `tableCellHorizontalAlignment`, `tableCellVerticalAlignment`
|
20 | * - cell width and height: `tableCellWidth`, `tableCellHeight`
|
21 | *
|
22 | * It also registers commands used to manipulate the above attributes:
|
23 | *
|
24 | * - border: the `'tableCellBorderStyle'`, `'tableCellBorderColor'` and `'tableCellBorderWidth'` commands
|
25 | * - background color: the `'tableCellBackgroundColor'` command
|
26 | * - cell padding: the `'tableCellPadding'` command
|
27 | * - horizontal and vertical alignment: the `'tableCellHorizontalAlignment'` and `'tableCellVerticalAlignment'` commands
|
28 | * - width and height: the `'tableCellWidth'` and `'tableCellHeight'` commands
|
29 | */
|
30 | export default class TableCellPropertiesEditing extends Plugin {
|
31 | /**
|
32 | * @inheritDoc
|
33 | */
|
34 | static get pluginName(): 'TableCellPropertiesEditing';
|
35 | /**
|
36 | * @inheritDoc
|
37 | */
|
38 | static get requires(): readonly [typeof TableEditing, typeof TableCellWidthEditing];
|
39 | /**
|
40 | * @inheritDoc
|
41 | */
|
42 | init(): void;
|
43 | }
|