1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

disable editor's context menu when switch preview is using right click

This commit is contained in:
Baptiste Augrain
2018-11-25 17:09:54 +01:00
parent a6eddb5798
commit d95d282f39
3 changed files with 14 additions and 6 deletions

View File

@@ -278,6 +278,7 @@ class MarkdownEditor extends React.Component {
onChange={(e) => this.handleChange(e)}
onBlur={(e) => this.handleBlur(e)}
spellCheck={config.editor.spellcheck}
switchPreview={config.editor.switchPreview}
/>
<MarkdownPreview styleName={this.state.status === 'PREVIEW'
? 'preview'