@atlaskit/editor-plugin-table
Version:
Table plugin for the @atlaskit/editor
11 lines (10 loc) • 356 B
JavaScript
// eslint-disable-next-line import/order
import { createCommand } from './plugin-state';
export const updateStickyState = rowState => createCommand({
name: 'UPDATE',
state: rowState
}, tr => tr.setMeta('addToHistory', false));
export const removeStickyState = pos => createCommand({
name: 'REMOVE',
pos
}, tr => tr.setMeta('addToHistory', false));