Skip to content

Type Editor


Type Editor / @type-editor/tables / cellselection/draw-cell-selection

cellselection/draw-cell-selection

Functions

FunctionDescription

drawCellSelection

Creates decorations to visually highlight selected cells in the editor.

This function is typically used as part of a ProseMirror plugin's decorations to apply the 'selectedCell' CSS class to all cells within a CellSelection.

Example

typescript
// In a plugin's props.decorations:
decorations: (state) => drawCellSelection(state);