add some more commands

This commit is contained in:
Philipp Kühn
2020-09-21 23:17:30 +02:00
parent 778e064979
commit 4da71ecfbb
27 changed files with 207 additions and 210 deletions

View File

@@ -17,12 +17,12 @@ export default new Node()
],
toDOM: () => ['ul', 0],
}))
.commands(({ editor, type }) => ({
[name]: next => attrs => {
// editor.toggleList(type, editor.schema.nodes.list_item)
next()
},
}))
// .commands(({ editor, type }) => ({
// [name]: next => attrs => {
// // editor.toggleList(type, editor.schema.nodes.list_item)
// next()
// },
// }))
.keys(({ editor }) => ({
'Shift-Ctrl-8': () => editor.bulletList(),
}))