UNPKG

714 BTypeScriptView Raw
1import { Editor } from '@ckeditor/ckeditor5-core';
2import TablePropertyCommand from './tablepropertycommand';
3
4/**
5 * The table alignment command.
6 *
7 * The command is registered by the {@link module:table/tableproperties/tablepropertiesediting~TablePropertiesEditing} as
8 * the `'tableAlignment'` editor command.
9 *
10 * To change the alignment of the selected table, execute the command:
11 *
12 * editor.execute( 'tableAlignment', {
13 * value: 'right'
14 * } );
15 */
16export default class TableAlignmentCommand extends TablePropertyCommand {
17 /**
18 * Creates a new `TableAlignmentCommand` instance.
19 */
20 constructor(editor: Editor, defaultValue: string);
21 readonly attributeName: 'alignment';
22}