@types/ckeditor__ckeditor5-table
Version:
TypeScript definitions for @ckeditor/ckeditor5-table
53 lines (48 loc) • 1.44 kB
TypeScript
import { Plugin } from '@ckeditor/ckeditor5-core';
import { Widget } from '@ckeditor/ckeditor5-widget';
import TableClipboard from './tableclipboard';
import TableEditing from './tableediting';
import TableKeyboard from './tablekeyboard';
import TableSelection from './tableselection';
import TableUI from './tableui';
import TableMouse from './tablemouse';
export default class Table extends Plugin {
static readonly requires: [
typeof TableEditing,
typeof TableUI,
typeof TableSelection,
typeof TableMouse,
typeof TableKeyboard,
typeof TableClipboard,
typeof Widget,
];
static readonly pluginName: 'Table';
}
export interface TableConfig {
contentToolbar?: string[] | undefined;
tableCellProperties?:
| {
borderColors?: TableColorConfig[] | undefined;
backgroundColors: TableColorConfig[];
}
| undefined;
tableProperties?:
| {
borderColors?: TableColorConfig[] | undefined;
backgroundColors: TableColorConfig[];
}
| undefined;
tableToolbar?: string[] | undefined;
}
export type TableColorConfig =
| string
| {
color: string;
label: string;
hasBorder?: boolean | undefined;
};
declare module '@ckeditor/ckeditor5-core/src/plugincollection' {
interface Plugins {
Table: Table;
}
}