1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 18:56:22 +00:00

fix lineAnchor bug, preview tooltip must be shown only markdown mode

This commit is contained in:
Rokt33r
2016-01-05 02:15:24 +09:00
parent 08b0c43382
commit 2e3a60cf6e
2 changed files with 10 additions and 2 deletions

View File

@@ -78,7 +78,12 @@ export default class ArticleEditor extends React.Component {
mode={this.props.mode}
code={this.props.content}
/>
<div className='ArticleDetail-panel-content-tooltip'>Press ESC to watch Preview</div>
{this.props.mode === 'markdown'
? (
<div className='ArticleDetail-panel-content-tooltip'>Press ESC to watch Preview</div>
)
: null
}
</div>
)
}