initialize task-item nodeview with dataset checked

This commit is contained in:
BrianHung 2021-07-10 12:27:40 -07:00 committed by Hans Pagel
parent 6c1e705a7a
commit 1ac8353768

View File

@ -111,6 +111,7 @@ export const TaskItem = Node.create<TaskItemOptions>({
}
})
listItem.dataset.checked = node.attrs.checked
if (node.attrs.checked) {
checkbox.setAttribute('checked', 'checked')
}