@atlaskit/editor-core
Version:
A package contains Atlassian editor core functionality
24 lines • 936 B
JavaScript
import { doc } from '../../../schema/nodes/doc';
import { paragraph } from '../../../schema/nodes/paragraph';
import { text } from '../../../schema/nodes/text';
import { baseKeymap, keymap, history } from '../../../prosemirror';
import { plugin as reactNodeView } from '../../../plugins/react-nodeview';
var basePlugin = {
pmPlugins: function () {
return [
{ rank: 9800, plugin: function (schema) { return reactNodeView; } },
{ rank: 9900, plugin: function () { return history(); } },
// should be last :(
{ rank: 10000, plugin: function () { return keymap(baseKeymap); } }
];
},
nodes: function () {
return [
{ name: 'doc', rank: 0, node: doc },
{ name: 'paragraph', rank: 0, node: paragraph },
{ name: 'text', rank: 200, node: text }
];
}
};
export default basePlugin;
//# sourceMappingURL=index.js.map