I learned years ago not to write things in Roll20. I write them in a Word doc, then paste them into the Roll20 editor and format. This is not just a Roll20 issue for me though, most online media can lose what you are writing due to some kind of failure (browser refresh, glitch, internet connection issue, etc). Roll20 is just on the more severe end of that problem. Word saves what you are writing as you write it so I don't lose content that way if there is an issue. Just the other day I was writing a long thing in Discord (I got stupid) and had a power fluctuation. Lost the entire thing. I should have been writing it in a Word doc.