1 | import { Plugin } from '@ckeditor/ckeditor5-core';
|
2 | import { Element } from '@ckeditor/ckeditor5-engine';
|
3 | import DocumentFragment from '@ckeditor/ckeditor5-engine/src/model/documentfragment';
|
4 | import TableUtils from './tableutils';
|
5 |
|
6 | export default class TableSelection extends Plugin {
|
7 | static readonly pluginName: 'TableSelection';
|
8 | static readonly requires: [typeof TableUtils];
|
9 | init(): void;
|
10 | getSelectedTableCells(): Element[] | null;
|
11 | getSelectionAsFragment(): DocumentFragment | null;
|
12 | setCellSelection(anchorCell: Element, targetCell: Element): void;
|
13 | getFocusCell(): Element;
|
14 | getAnchorCell(): Element;
|
15 | }
|
16 |
|
17 | declare module '@ckeditor/ckeditor5-core/src/plugincollection' {
|
18 | interface Plugins {
|
19 | TableSelection: TableSelection;
|
20 | }
|
21 | }
|