Skip to content

Commit

Permalink
Disable CodeMirror smart indentation
Browse files Browse the repository at this point in the history
Fixes #966.
  • Loading branch information
sophiebits authored and vjeux committed Feb 2, 2014
1 parent 22772c9 commit 571d173
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/_js/live_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 571d173

Please sign in to comment.