1
0
mirror of https://github.com/bobwen-dev/react-templates synced 2025-04-12 00:56:39 +02:00

minor fix

This commit is contained in:
ido 2015-10-25 12:55:35 +02:00
parent dbf3dbf21e
commit bd7be16aeb

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