UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

21 lines 749 B
import { Plugin, PluginKey, } from '../../prosemirror'; import inputRulePlugin from './input-rules'; import keymapsPlugin from './keymaps'; import { taskItemNodeView, decisionItemNodeView } from '../../nodeviews'; export var stateKey = new PluginKey('tasksAndDecisionsPlugin'); export function createPlugin() { return new Plugin({ props: { nodeViews: { taskItem: taskItemNodeView, decisionItem: decisionItemNodeView }, }, key: stateKey, }); } var plugins = function (schema) { return [createPlugin(), inputRulePlugin(schema), keymapsPlugin(schema)].filter(function (plugin) { return !!plugin; }); }; export default plugins; //# sourceMappingURL=index.js.map