rename ordererdlist command

This commit is contained in:
Philipp Kühn
2020-11-18 11:34:44 +01:00
parent 6ca1a6c307
commit d1c767413e
6 changed files with 7 additions and 7 deletions

View File

@@ -54,7 +54,7 @@ const OrderedList = Node.create({
/**
* Toggle an ordered list
*/
orderedList: (): Command => ({ commands }) => {
toggleOrderedList: (): Command => ({ commands }) => {
return commands.toggleList('orderedList', 'listItem')
},
}
@@ -62,7 +62,7 @@ const OrderedList = Node.create({
addKeyboardShortcuts() {
return {
'Shift-Control-9': () => this.editor.commands.orderedList(),
'Shift-Control-9': () => this.editor.commands.toggleOrderedList(),
}
},