add list group
This commit is contained in:
@@ -8,7 +8,7 @@ const BulletList = createNode({
|
|||||||
|
|
||||||
list: true,
|
list: true,
|
||||||
|
|
||||||
group: 'block',
|
group: 'list',
|
||||||
|
|
||||||
content: 'list_item+',
|
content: 'list_item+',
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ const OrderedList = createNode({
|
|||||||
|
|
||||||
list: true,
|
list: true,
|
||||||
|
|
||||||
group: 'block',
|
group: 'list',
|
||||||
|
|
||||||
content: 'list_item+',
|
content: 'list_item+',
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ const TaskList = createNode({
|
|||||||
|
|
||||||
list: true,
|
list: true,
|
||||||
|
|
||||||
group: 'block',
|
group: 'list',
|
||||||
|
|
||||||
content: 'task_item+',
|
content: 'task_item+',
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user