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)} onKeyDown={(e) => this.handleKeyDown(e)}
onKeyUp={(e) => this.handleKeyUp(e)} onKeyUp={(e) => this.handleKeyUp(e)}
> >
<CodeEditor styleName='codeEditor' <CodeEditor styleName={this.state.status === 'CODE'
? 'codeEditor'
: 'codeEditor--hide'
}
ref='code' ref='code'
mode='GitHub Flavored Markdown' mode='GitHub Flavored Markdown'
value={value} value={value}

View File

@@ -4,8 +4,14 @@
.codeEditor .codeEditor
absolute top bottom left right absolute top bottom left right
.hide
z-index 0
opacity 0
pointer-events none
.codeEditor--hide .codeEditor--hide
@extend .codeEditor @extend .codeEditor
@extend .hide
.preview .preview
display block display block
@@ -17,7 +23,5 @@
.preview--hide .preview--hide
@extend .preview @extend .preview
z-index 0 @extend .hide
opacity 0
pointer-events none