fix bullet list

This commit is contained in:
Philipp Kühn
2020-09-22 20:39:24 +02:00
parent 2856900c6a
commit 2c9973af8c
6 changed files with 77 additions and 28 deletions

View File

@@ -6,14 +6,12 @@ export default new Node()
content: 'paragraph block*',
defining: true,
draggable: false,
parseDOM: [
{ tag: 'li' },
],
parseDOM: [{ tag: 'li' }],
toDOM: () => ['li', 0],
}))
.keys(({ editor, name }) => ({
Enter: () => editor.splitListItem(name),
// Tab: () => editor.sinkListItem(name),
// 'Shift-Tab': () => editor.liftListItem(name),
Tab: () => editor.sinkListItem(name),
'Shift-Tab': () => editor.liftListItem(name),
}))
.create()