minor fix
This commit is contained in:
parent
dbf3dbf21e
commit
bd7be16aeb
|
@ -36,10 +36,10 @@ define(['react', 'lodash']/*, 'ace'*/, function (React, _/*, ace*/) {
|
|||
this.editor = ace.edit(this.props.id || this.state.editorId);
|
||||
// this.editor.setTheme('ace/theme/monokai');
|
||||
this.editor.setTheme('ace/theme/solarized_light');
|
||||
if (this.props.mode !== 'html') {
|
||||
this.editor.getSession().setMode('ace/mode/javascript');
|
||||
} else {
|
||||
if (this.props.mode === 'html') {
|
||||
this.editor.getSession().setMode('ace/mode/html');
|
||||
} else {
|
||||
this.editor.getSession().setMode('ace/mode/javascript');
|
||||
}
|
||||
this.editor.getSession().setUseWorker(false);
|
||||
|
||||
|
|
Loading…
Reference in New Issue