UNPKG

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