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 = /^\s*([-+*])\s$/
const BulletList = createNode({
name: 'bullet_list',
name: 'bulletList',
group: 'block list',
content: 'list_item+',
content: 'listItem+',
parseHTML() {
return [
@@ -23,7 +23,7 @@ const BulletList = createNode({
addCommands() {
return {
bulletList: (): Command => ({ commands }) => {
return commands.toggleList('bullet_list', 'list_item')
return commands.toggleList('bulletList', 'listItem')
},
}
},