add list of current commands

This commit is contained in:
Philipp Kühn
2020-04-22 09:23:53 +02:00
parent adb44f317c
commit 0e18e67c93
4 changed files with 38 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ export default class Heading extends Node {
commands(): CommandSpec {
return {
heading: next => attrs => {
this.editor.toggleBlockType(this.name, 'paragraph', attrs)
this.editor.toggleNode(this.name, 'paragraph', attrs)
next()
},
}