Disable CodeMirror smart indentation

Fixes #966.
This commit is contained in:
Ben Alpert
2014-01-31 22:10:37 -08:00
committed by Vjeux
parent 22772c9862
commit 571d173182
+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