removed ToC in readonly mode
This commit is contained in:
@ -193,7 +193,7 @@ class MarkdownEditor extends Component {
|
|||||||
>
|
>
|
||||||
<MaxWidth column auto>
|
<MaxWidth column auto>
|
||||||
<Header onClick={this.focusAtStart} readOnly={readOnly} />
|
<Header onClick={this.focusAtStart} readOnly={readOnly} />
|
||||||
<Contents state={this.editorState} />
|
{readOnly && <Contents state={this.editorState} />}
|
||||||
{!readOnly && (
|
{!readOnly && (
|
||||||
<Toolbar state={this.editorState} onChange={this.onChange} />
|
<Toolbar state={this.editorState} onChange={this.onChange} />
|
||||||
)}
|
)}
|
||||||
|
Reference in New Issue
Block a user