@atlaskit/editor-plugin-table
Version:
Table plugin for the @atlaskit/editor
9 lines • 336 B
JavaScript
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
});
};