1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Merge pull request #549 from LetItRock/#535

Fix for #535:
This commit is contained in:
Kazu Yokomizo
2017-06-03 14:35:52 +09:00
committed by GitHub
2 changed files with 11 additions and 4 deletions

View File

@@ -223,7 +223,10 @@ class MarkdownEditor extends React.Component {
onKeyDown={(e) => this.handleKeyDown(e)}
onKeyUp={(e) => this.handleKeyUp(e)}
>
<CodeEditor styleName='codeEditor'
<CodeEditor styleName={this.state.status === 'CODE'
? 'codeEditor'
: 'codeEditor--hide'
}
ref='code'
mode='GitHub Flavored Markdown'
value={value}