import { Plugin } from "prosemirror-state"; import { PixelSize } from "../constants"; import { EditorSchema } from "../schema"; /** * A [plugin](http://prosemirror.net/docs/ref/#state.Plugin) that, when added to * an editor, enables cell-selection, handles cell-based copy/paste, allows * column resizing, and makes sure tables stay well-formed (each row has the * same width, and cells don't overlap). * * You should probably put this plugin near the end of your array of plugins, * since it handles mouse and arrow key events in tables rather broadly, and * other plugins, like wedge, might want to get a turn first to perform more * specific behavior. */ export declare class TablePlugin extends Plugin { constructor({ columnEdgeHitZoneWidth, cellMinWidth }?: { columnEdgeHitZoneWidth?: number | undefined; cellMinWidth?: PixelSize | undefined; }); }