rename bulletlist command

This commit is contained in:
Philipp Kühn
2020-11-18 11:33:33 +01:00
parent 56bb26f124
commit 6ca1a6c307
8 changed files with 10 additions and 10 deletions

View File

@@ -35,7 +35,7 @@ const BulletList = Node.create({
/**
* Toggle a bullet list
*/
bulletList: (): Command => ({ commands }) => {
toggleBulletList: (): Command => ({ commands }) => {
return commands.toggleList('bulletList', 'listItem')
},
}
@@ -43,7 +43,7 @@ const BulletList = Node.create({
addKeyboardShortcuts() {
return {
'Shift-Control-8': () => this.editor.commands.bulletList(),
'Shift-Control-8': () => this.editor.commands.toggleBulletList(),
}
},