UNPKG

@atlaskit/editor-plugin-table

Version:

Table plugin for the @atlaskit/editor

11 lines 277 B
import { collapseSelectedTable } from '../utils/collapse'; export const wrapTableInExpand = (state, dispatch) => { const collapseTr = collapseSelectedTable(state.tr); if (!collapseTr) { return false; } if (dispatch) { dispatch(collapseTr); } return true; };