Closed lin52025iq closed 8 months ago
If you are using self-hosted hocuspocus, you can set up an extension that subscribes to onChange, and then sets a value in a custom map in the yjs document.
When using collab, you can probably use the onUpdate event (of tiptap) and again save the current time the ydoc. A request for a tiptap extension should go in the tiptap github :)
The problem I am facing I want to save the last modified time.
The solution I would like tiptap-extension-document
Add lastChangedTime to the document extension, and call updateLastChangeTime in hocuspocus onChange or onStoreDocument to update the last change time. But there is a problem with setting it up this way and I don't know where to call commands. What should I do?