add keyboard shortcuts to the api, remove best practices section
This commit is contained in:
@@ -29,7 +29,7 @@ export default new Node()
|
||||
},
|
||||
}))
|
||||
.keys(({ editor }) => ({
|
||||
'Shift-Ctrl-\\': () => editor.codeBlock(),
|
||||
'Shift-Control-\\': () => editor.codeBlock(),
|
||||
}))
|
||||
.inputRules(({ type }) => [
|
||||
textblockTypeInputRule(/^```$/, type),
|
||||
|
||||
Reference in New Issue
Block a user