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/commands/tablecellborderstylecommand
|
7 | */
|
8 | import type { Editor } from 'ckeditor5/src/core';
|
9 | import type { Element } from 'ckeditor5/src/engine';
|
10 | import TableCellPropertyCommand from './tablecellpropertycommand';
|
11 | /**
|
12 | * The table cell border style command.
|
13 | *
|
14 | * The command is registered by the {@link module:table/tablecellproperties/tablecellpropertiesediting~TableCellPropertiesEditing} as
|
15 | * the `'tableCellBorderStyle'` editor command.
|
16 | *
|
17 | * To change the border style of selected cells, execute the command:
|
18 | *
|
19 | * ```ts
|
20 | * editor.execute( 'tableCellBorderStyle', {
|
21 | * value: 'dashed'
|
22 | * } );
|
23 | * ```
|
24 | */
|
25 | export default class TableCellBorderStyleCommand extends TableCellPropertyCommand {
|
26 | /**
|
27 | * Creates a new `TableCellBorderStyleCommand` 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 _getAttribute(tableCell: Element): unknown;
|
37 | }
|