What happened?
Calling activeEditor.replaceFile(file) on a document that is already open in a collaborative session (liveblocks) completes without any errors, but the editor continues to display the old content. The new imported docx file never replaces the existing document.
The last time this was working from what I can tell was in version: 1.17.0
Steps to reproduce
- Open an existing collaborative document (we use liveblocks).
- Wait for the editor and liveblocks to sync.
- Call
superdoc.activeEditor.replaceFile(docxFile) with a valid docx file.
- The promise resolves, but the document content does not change. The old content remains.
SuperDoc version
1.22.0 and 1.23.0
Browser
Chrome
Additional context
Importing into a brand new document (empty liveblocks room) using replaceFile() works. The issue only seems to occur when importing into a room that already has synced Yjs content.
What happened?
Calling
activeEditor.replaceFile(file)on a document that is already open in a collaborative session (liveblocks) completes without any errors, but the editor continues to display the old content. The new imported docx file never replaces the existing document.The last time this was working from what I can tell was in version: 1.17.0
Steps to reproduce
superdoc.activeEditor.replaceFile(docxFile)with a valid docx file.SuperDoc version
1.22.0 and 1.23.0
Browser
Chrome
Additional context
Importing into a brand new document (empty liveblocks room) using
replaceFile()works. The issue only seems to occur when importing into a room that already has synced Yjs content.