Hey,
I'm using firebase-monaco and it's working great, however when I connect the FireMonacoEditor class to my editor, I believe it attempts to read the history from RTDB and updates the model. If there is no history, the editor is essentially updated to show no content (an empty model).
The part I'm struggling to work out, is how do I apply existing content, so when the class connects it keeps the existing model content, and then applies history on-top of that? Is there some way I can essentially grab the current model, and apply that as a history item on the database?
Cheers for the great work on this.
Hey,
I'm using
firebase-monacoand it's working great, however when I connect theFireMonacoEditorclass to my editor, I believe it attempts to read the history from RTDB and updates the model. If there is no history, the editor is essentially updated to show no content (an empty model).The part I'm struggling to work out, is how do I apply existing content, so when the class connects it keeps the existing model content, and then applies history on-top of that? Is there some way I can essentially grab the current model, and apply that as a history item on the database?
Cheers for the great work on this.