From 571d1731821ce055be417bde3603b8c01ba40bdd Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Fri, 31 Jan 2014 22:10:37 -0800 Subject: [PATCH] Disable CodeMirror smart indentation Fixes #966. --- docs/_js/live_editor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/_js/live_editor.js b/docs/_js/live_editor.js index af4bc392a5..955e282568 100644 --- a/docs/_js/live_editor.js +++ b/docs/_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