UNPKG

774 BTypeScriptView Raw
1import { Plugin } from '@ckeditor/ckeditor5-core';
2import { Element } from '@ckeditor/ckeditor5-engine';
3import DocumentFragment from '@ckeditor/ckeditor5-engine/src/model/documentfragment';
4import TableUtils from './tableutils';
5
6export 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
17declare module '@ckeditor/ckeditor5-core/src/plugincollection' {
18 interface Plugins {
19 TableSelection: TableSelection;
20 }
21}