add HTMLAttributes to defaultoptions
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
import { Command, createNode, mergeAttributes } from '@tiptap/core'
|
||||
|
||||
export interface TaskListOptions {
|
||||
HTMLAttributes: {
|
||||
[key: string]: any
|
||||
},
|
||||
}
|
||||
|
||||
const TaskList = createNode({
|
||||
name: 'taskList',
|
||||
|
||||
defaultOptions: <TaskListOptions>{
|
||||
HTMLAttributes: {},
|
||||
},
|
||||
|
||||
group: 'block list',
|
||||
|
||||
content: 'taskItem+',
|
||||
|
||||
Reference in New Issue
Block a user