rename setBlockType to setNode

This commit is contained in:
Philipp Kühn
2020-11-20 23:56:41 +01:00
parent c433428fba
commit 540b0656f3
7 changed files with 20 additions and 20 deletions

View File

@@ -60,7 +60,7 @@ const Heading = Node.create({
return false
}
return commands.setBlockType('heading', attributes)
return commands.setNode('heading', attributes)
},
/**
* Toggle a heading node