mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 11:49:02 +08:00
fix: add missing HTMLAttributes to task list, fix #2042
This commit is contained in:
parent
808d32f9a7
commit
7503d1bed1
@ -36,7 +36,7 @@ export const TaskList = Node.create<TaskListOptions>({
|
||||
},
|
||||
|
||||
renderHTML({ HTMLAttributes }) {
|
||||
return ['ul', mergeAttributes(HTMLAttributes, { 'data-type': 'taskList' }), 0]
|
||||
return ['ul', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, { 'data-type': 'taskList' }), 0]
|
||||
},
|
||||
|
||||
addCommands() {
|
||||
|
Loading…
Reference in New Issue
Block a user