UNPKG

704 BTypeScriptView 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 */
5import { Command } from 'ckeditor5/src/core';
6/**
7 * The merge cells command.
8 *
9 * The command is registered by {@link module:table/tableediting~TableEditing} as the `'mergeTableCells'` editor command.
10 *
11 * For example, to merge selected table cells:
12 *
13 * ```ts
14 * editor.execute( 'mergeTableCells' );
15 * ```
16 */
17export default class MergeCellsCommand extends Command {
18 /**
19 * @inheritDoc
20 */
21 refresh(): void;
22 /**
23 * Executes the command.
24 *
25 * @fires execute
26 */
27 execute(): void;
28}