mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-19 06:43:02 +08:00
initialize task-item nodeview with dataset checked
This commit is contained in:
parent
6c1e705a7a
commit
1ac8353768
@ -111,6 +111,7 @@ export const TaskItem = Node.create<TaskItemOptions>({
|
||||
}
|
||||
})
|
||||
|
||||
listItem.dataset.checked = node.attrs.checked
|
||||
if (node.attrs.checked) {
|
||||
checkbox.setAttribute('checked', 'checked')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user