Disable CodeMirror smart indentation

Fixes #966.
This commit is contained in:
Ben Alpert
2014-01-31 22:10:37 -08:00
parent fce6d114fe
commit a2e805b26e
+1
View File
@@ -21,6 +21,7 @@ var CodeMirrorEditor = React.createClass({
mode: 'javascript',
lineNumbers: false,
lineWrapping: true,
smartIndent: false, // javascript mode does bad things with jsx indents
matchBrackets: true,
theme: 'solarized-light',
readOnly: this.props.readOnly