removed ToC in readonly mode

This commit is contained in:
Jori Lallo
2017-11-26 20:52:39 -08:00
parent 3ef82191b7
commit a0f3332b9f

View File

@ -193,7 +193,7 @@ class MarkdownEditor extends Component {
>
<MaxWidth column auto>
<Header onClick={this.focusAtStart} readOnly={readOnly} />
<Contents state={this.editorState} />
{readOnly && <Contents state={this.editorState} />}
{!readOnly && (
<Toolbar state={this.editorState} onChange={this.onChange} />
)}