rename schema names

This commit is contained in:
Philipp Kühn
2020-11-03 20:57:09 +01:00
parent 50d1d6372e
commit 4ed01c41cb
12 changed files with 31 additions and 31 deletions

View File

@@ -4,11 +4,11 @@ import { wrappingInputRule } from 'prosemirror-inputrules'
export const inputRegex = /^(\d+)\.\s$/
const OrderedList = createNode({
name: 'ordered_list',
name: 'orderedList',
group: 'block list',
content: 'list_item+',
content: 'listItem+',
addAttributes() {
return {
@@ -42,7 +42,7 @@ const OrderedList = createNode({
addCommands() {
return {
orderedList: (): Command => ({ commands }) => {
return commands.toggleList('ordered_list', 'list_item')
return commands.toggleList('orderedList', 'listItem')
},
}
},