add keyboard shortcuts to the api, remove best practices section

This commit is contained in:
Hans Pagel
2020-09-24 14:46:11 +02:00
parent 3084e6e160
commit 39c39862b4
8 changed files with 79 additions and 84 deletions

View File

@@ -25,7 +25,7 @@ export default new Node()
},
}))
.keys(({ editor }) => ({
'Shift-Ctrl-8': () => editor.bulletList(),
'Shift-Control-8': () => editor.bulletList(),
}))
.inputRules(({ type }) => [
wrappingInputRule(/^\s*([-+*])\s$/, type),