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, list: true,
group: 'block', group: 'list',
content: 'list_item+', content: 'list_item+',

View File

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

View File

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

View File

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

View File

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