add HTMLAttributes to defaultoptions
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
import { createNode } from '@tiptap/core'
|
||||
|
||||
export interface ListItemOptions {
|
||||
HTMLAttributes: {
|
||||
[key: string]: any
|
||||
},
|
||||
}
|
||||
|
||||
const ListItem = createNode({
|
||||
name: 'listItem',
|
||||
|
||||
defaultOptions: <ListItemOptions>{
|
||||
HTMLAttributes: {},
|
||||
},
|
||||
|
||||
content: '(paragraph|list?)+',
|
||||
|
||||
defining: true,
|
||||
|
||||
Reference in New Issue
Block a user