add list group

This commit is contained in:
Philipp Kühn 2020-11-02 11:16:31 +01:00
parent ca5a60b7a2
commit bfc58caea5
5 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ const BulletList = createNode({
list: true,
group: 'block',
group: 'list',
content: 'list_item+',

View File

@ -3,7 +3,7 @@ import { createNode } from '@tiptap/core'
const Document = createNode({
name: 'document',
topNode: true,
content: 'block+',
content: '(block|list)+',
})
export default Document

View File

@ -3,7 +3,7 @@ import { createNode } from '@tiptap/core'
const ListItem = createNode({
name: 'list_item',
content: 'paragraph block*',
content: '(paragraph|list)+',
defining: true,

View File

@ -8,7 +8,7 @@ const OrderedList = createNode({
list: true,
group: 'block',
group: 'list',
content: 'list_item+',

View File

@ -5,7 +5,7 @@ const TaskList = createNode({
list: true,
group: 'block',
group: 'list',
content: 'task_item+',