initialize task-item nodeview with dataset checked
This commit is contained in:
@@ -111,6 +111,7 @@ export const TaskItem = Node.create<TaskItemOptions>({
|
||||
}
|
||||
})
|
||||
|
||||
listItem.dataset.checked = node.attrs.checked
|
||||
if (node.attrs.checked) {
|
||||
checkbox.setAttribute('checked', 'checked')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user