@@ -121,7 +121,10 @@ class HtmlDocument extends React.Component {
}))
], [])
- this.setState({timeline: revisionWithComment})
+ this.setState({
+ timeline: revisionWithComment,
+ mode: resRevision.body.length === 1 ? MODE.EDIT : MODE.VIEW // first time editing the doc, open in edit mode
+ })
})
.catch(e => {
console.log('Error loading Timeline.', e)