fix: add missing HTMLAttributes to task list, fix #2042

This commit is contained in:
Philipp Kühn 2021-10-15 15:19:42 +02:00
parent 808d32f9a7
commit 7503d1bed1

View File

@ -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() {