prefix all commands with ‚commands‘

This commit is contained in:
Philipp Kühn
2020-11-13 11:42:04 +01:00
parent c3fa5ebf1b
commit 13489998b9
20 changed files with 54 additions and 82 deletions

View File

@@ -65,7 +65,7 @@ const Heading = createNode({
return this.options.levels.reduce((items, level) => ({
...items,
...{
[`Mod-Alt-${level}`]: () => this.editor.setBlockType('heading', { level }),
[`Mod-Alt-${level}`]: () => this.editor.commands.setBlockType('heading', { level }),
},
}), {})
},