add paragraph command

This commit is contained in:
Philipp Kühn
2020-11-18 12:29:24 +01:00
parent e526c788c9
commit ab5e144a5f
5 changed files with 6 additions and 6 deletions

View File

@@ -32,7 +32,7 @@ const Paragraph = Node.create({
/**
* Toggle a paragraph
*/
paragraph: (): Command => ({ commands }) => {
setParagraph: (): Command => ({ commands }) => {
return commands.toggleBlockType('paragraph', 'paragraph')
},
}
@@ -40,7 +40,7 @@ const Paragraph = Node.create({
addKeyboardShortcuts() {
return {
'Mod-Alt-0': () => this.editor.commands.paragraph(),
'Mod-Alt-0': () => this.editor.commands.setParagraph(),
}
},
})