Skip to content

Type Editor


Type Editor / @type-editor/tables / commands/split-cell / splitCell

Function: splitCell()

ts
function splitCell(state, dispatch?): boolean;

Defined in: tables/src/commands/split-cell.ts:19

Splits a selected cell that has rowspan or colspan greater than one into smaller cells.

Uses the first cell's type for all new cells created during the split.

Parameters

ParameterTypeDescription
statePmEditorStateThe current editor state
dispatch?DispatchFunctionOptional dispatch function to execute the command

Returns

boolean

True if the command is applicable, false otherwise