replace toggleBlockType with toggleNode(

This commit is contained in:
Philipp Kühn
2020-11-21 00:00:57 +01:00
parent 540b0656f3
commit 8f6ae0e69e
7 changed files with 9 additions and 9 deletions

View File

@@ -275,7 +275,7 @@ const CustomParagraph = Paragraph.extend({
addCommands() {
return {
paragraph: () => ({ commands }) => {
return commands.toggleBlockType('paragraph', 'paragraph')
return commands.toggleNode('paragraph', 'paragraph')
},
}
},