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

@@ -38,7 +38,7 @@ export default new Node()
},
}))
.keys(({ editor }) => ({
'Shift-Ctrl-9': () => editor.orderedList(),
'Shift-Control-9': () => editor.orderedList(),
}))
.inputRules(({ type }) => [
wrappingInputRule(