1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-20 13:11:44 +00:00

esc to show preview when rightclick to toggle set

This commit is contained in:
Rokt33r
2016-01-19 18:58:27 +09:00
parent fb8a2eb2e0
commit da0222f213
3 changed files with 12 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ export default class ArticleEditor extends React.Component {
}
switchPreviewMode (isTemporary = false) {
if (this.props.article.mode !== 'markdown') return true
let cursorPosition = this.refs.editor.getCursorPosition()
let firstVisibleRow = this.refs.editor.getFirstVisibleRow()
this.setState({