UNPKG

@atlaskit/editor-plugin-table

Version:

Table plugin for the @atlaskit/editor

9 lines 336 B
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin'; import { pluginKey } from './plugin-key'; import { createPluginState } from './plugin-state'; export const createPlugin = (dispatch, initialState = () => []) => { return new SafePlugin({ state: createPluginState(dispatch, initialState), key: pluginKey }); };