Completed
Branch master (28f58d)
by Michael
02:42
created

script/keymap.js   A

Size

Lines of Code 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 1
rs 10
noi 0
1
const { splitListItem } = require('prosemirror-schema-list');
2
const { keymap } = require('prosemirror-keymap');
3
const { schema } = require('./schema');
4
5
6
const customKeymap = {};
7
8
customKeymap.Enter = splitListItem(schema.nodes.list_item);
9
10
const customKeymapPlugin = keymap(customKeymap);
11
12
exports.customKeymapPlugin = customKeymapPlugin;
13