I want to update the information of the document node, how should I update the data of yjs

I am using tiptap and yjs for collab. I have a task list node, I want the user to check the task when browsing the document (non-editing state), in this case, I am not sure how to update ydoc to ensure that the edit and preview state of the task list is the same