Skip to content

Commit

Permalink
sfsdf
Browse files Browse the repository at this point in the history
  • Loading branch information
chinchang committed Jun 26, 2019
1 parent dae410b commit 51a16d9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/ContentWrapFiles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,13 @@ export default class ContentWrapFiles extends Component {
</div>
</div>
<CodeEditor
type={this.props.prefs.isMonacoEditorOn ? 'monaco' : 'codemirror'}
type={
window.forcedSettings.isMonacoEditorOn === true ||
(this.props.prefs.isMonacoEditorOn &&
window.forcedSettings.isMonacoEditorOn !== false)
? 'monaco'
: 'codemirror'
}
value={
this.state.selectedFile ? this.state.selectedFile.content : ''
}
Expand Down

0 comments on commit 51a16d9

Please sign in to comment.