@samitouri / QOS-React-2 / commits / a2e805b26e

Disable CodeMirror smart indentation

Fixes #966.

Ben Alpert committed Jan 31, 2014 at 22:10 UTC a2e805b26e1a37e58867fd44732f546ea6ecfc13
1 file changed +1
docs/_js/live_editor.js
+1
@@ -21,6 +21,7 @@ var CodeMirrorEditor = React.createClass({
21 mode: 'javascript',
22 lineNumbers: false,
23 lineWrapping: true,
24 + smartIndent: false, // javascript mode does bad things with jsx indents
25 matchBrackets: true,
26 theme: 'solarized-light',
27 readOnly: this.props.readOnly