Order operations by when they were performed to ensure that the last edits are what is saved. This fixed a bug where when creating a new post offline, a very early version of the post was the one saved as the naive sort of the operation keys put 9 behind 19.
Use switch statements instead of if/else ifs
Textarea isn't always there as when the post has been saved