minor fix

This commit is contained in:
ido 2015-10-25 12:55:35 +02:00
parent dbf3dbf21e
commit bd7be16aeb
1 changed files with 3 additions and 3 deletions

View File

@ -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);