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/tableproperties/commands/tableborderstylecommand
|
7 | */
|
8 | import type { Element } from 'ckeditor5/src/engine';
|
9 | import TablePropertyCommand from './tablepropertycommand';
|
10 | import type { Editor } from 'ckeditor5/src/core';
|
11 | /**
|
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 | export default class TableBorderStyleCommand extends TablePropertyCommand {
|
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 _getValue(table: Element): unknown;
|
37 | }
|