fix: add missing HTMLAttributes to task list, fix #2042
This commit is contained in:
@@ -36,7 +36,7 @@ export const TaskList = Node.create<TaskListOptions>({
|
|||||||
},
|
},
|
||||||
|
|
||||||
renderHTML({ HTMLAttributes }) {
|
renderHTML({ HTMLAttributes }) {
|
||||||
return ['ul', mergeAttributes(HTMLAttributes, { 'data-type': 'taskList' }), 0]
|
return ['ul', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, { 'data-type': 'taskList' }), 0]
|
||||||
},
|
},
|
||||||
|
|
||||||
addCommands() {
|
addCommands() {
|
||||||
|
|||||||
Reference in New Issue
Block a user