Browse Source

Disable CodeMirror smart indentation

Fixes #966.
main
Ben Alpert 11 years ago
parent
commit
27087a5704
  1. 1
      _js/live_editor.js

1
_js/live_editor.js

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

Loading…
Cancel
Save