@cairn214/fluent-editor
Version:
A rich text editor based on Quill 2.0, which extends rich modules and formats on the basis of Quill. It's powerful and out-of-the-box.
42 lines (41 loc) • 1.14 kB
TypeScript
export default class TableOperationMenu {
tableSelection: any;
table: any;
quill: any;
options: any;
menuItems: any;
tableColumnTool: any;
tableScrollBar: any;
boundary: any;
selectedTds: any;
destroyHandler: any;
columnToolCells: any;
colorSubTitle: any;
cellColors: any;
borderColorSubTitle: any;
borderColors: any;
domNode: any;
DEFAULT_COLOR_SUBTITLE: string;
DEFAULT_MENU: Record<string, {
text: string;
handler: () => void;
}>;
constructor(params: any, quill: any, options: any);
setDefaultMenu(): void;
mount(): void;
destroy(): any;
menuInitial({ cell, left, top }: {
cell: any;
left: any;
top: any;
}): void;
colorsItemCreator(colors: any): HTMLDivElement;
borderColorsItemCreator(colors: any): HTMLDivElement;
menuItemCreator({ text }: {
text: any;
}): HTMLDivElement;
onCopy(operation: any): Promise<void>;
createVirtualTable(selectedTds: any, _operation: any): any;
setCopyRange(selectedNodes: any): void;
groupTableCell(selectedTds: any): any[];
}