UNPKG

@kedao/editor

Version:

Rich Text Editor Based On Draft.js

23 lines (22 loc) 1.69 kB
import { EditorState } from 'draft-js'; import Immutable from 'immutable'; export declare const rebuildTableBlocks: (tableBlocks: any, addonBlockData?: {}) => any; export declare const rebuildTableNode: (tableNode: any) => void; export declare const updateAllTableBlocks: (editorState: any, tableKey: any, blockData: any) => EditorState; export declare const getCellCountForInsert: (tableBlocks: any, rowIndex: any) => any; export declare const getCellsInsideRect: (editorState: any, tableKey: any, startLocation: any, endLocation: any) => Immutable.OrderedMap<unknown, unknown> | { cellBlocks: Immutable.List<any>; cellKeys: any[]; spannedCellBlocks: Immutable.List<any>; spannedCellBlockKeys: any[]; }; export declare const insertCell: (tableBlocks: any, cell: any) => any; export declare const insertCells: (tableBlocks: any, cells?: any[]) => any; export declare const insertTable: (editorState: any, columns?: number, rows?: number) => any; export declare const removeTable: (editorState: any, tableKey: any) => any; export declare const insertColumn: (editorState: any, tableKey: any, cellCounts: any, colIndex: any) => any; export declare const removeColumn: (editorState: any, tableKey: any, colIndex: any) => EditorState; export declare const insertRow: (editorState: any, tableKey: any, cellCounts: any, rowIndex: any, addonBlockData?: {}) => EditorState; export declare const removeRow: (editorState: any, tableKey: any, rowIndex: any, addonBlockData?: {}) => EditorState; export declare const mergeCells: (editorState: any, tableKey: any, cellKeys: any) => EditorState; export declare const splitCell: (editorState: any, tableKey: any, cellKey: any) => EditorState;