Set editor with existing document contents.

We were setting the default text if on version 0, but need to also set whatever
the existing contents are if on a version greater than 0.

@jhchen Can you take a look at this and also lmk what you think is the best way to handle cursors is?