Merge branch 'main' of github.com:ueberdosis/tiptap-next into main

This commit is contained in:
Hans Pagel
2020-11-13 15:08:40 +01:00
52 changed files with 177 additions and 179 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 }),
},
}), {})
},