mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 14:13:21 +08:00
add list group
This commit is contained in:
parent
ca5a60b7a2
commit
bfc58caea5
@ -8,7 +8,7 @@ const BulletList = createNode({
|
||||
|
||||
list: true,
|
||||
|
||||
group: 'block',
|
||||
group: 'list',
|
||||
|
||||
content: 'list_item+',
|
||||
|
||||
|
@ -3,7 +3,7 @@ import { createNode } from '@tiptap/core'
|
||||
const Document = createNode({
|
||||
name: 'document',
|
||||
topNode: true,
|
||||
content: 'block+',
|
||||
content: '(block|list)+',
|
||||
})
|
||||
|
||||
export default Document
|
||||
|
@ -3,7 +3,7 @@ import { createNode } from '@tiptap/core'
|
||||
const ListItem = createNode({
|
||||
name: 'list_item',
|
||||
|
||||
content: 'paragraph block*',
|
||||
content: '(paragraph|list)+',
|
||||
|
||||
defining: true,
|
||||
|
||||
|
@ -8,7 +8,7 @@ const OrderedList = createNode({
|
||||
|
||||
list: true,
|
||||
|
||||
group: 'block',
|
||||
group: 'list',
|
||||
|
||||
content: 'list_item+',
|
||||
|
||||
|
@ -5,7 +5,7 @@ const TaskList = createNode({
|
||||
|
||||
list: true,
|
||||
|
||||
group: 'block',
|
||||
group: 'list',
|
||||
|
||||
content: 'task_item+',
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user