Replies: 1 comment 1 reply
-
Well, this seems to work - not sure if it's the best way though. fireMonaco.on(EditorClientEvent.Ready, () => {
fireMonaco.text = < update with content
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I'm using
firebase-monaco
and it's working great, however when I connect theFireMonacoEditor
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.
Beta Was this translation helpful? Give feedback.
All reactions