fix: add HTMLAttributes to task item node view
This commit is contained in:
@@ -108,6 +108,10 @@ export const TaskItem = Node.create<TaskItemOptions>({
|
||||
}
|
||||
})
|
||||
|
||||
Object.entries(this.options.HTMLAttributes).forEach(([key, value]) => {
|
||||
listItem.setAttribute(key, value)
|
||||
})
|
||||
|
||||
listItem.dataset.checked = node.attrs.checked
|
||||
if (node.attrs.checked) {
|
||||
checkbox.setAttribute('checked', 'checked')
|
||||
|
||||
Reference in New Issue
Block a user