Skip to content

Instantly share code, notes, and snippets.

@v
Created February 28, 2016 23:56
Show Gist options
  • Save v/22257c0a7a240148a6df to your computer and use it in GitHub Desktop.
Save v/22257c0a7a240148a6df to your computer and use it in GitHub Desktop.
diff --git a/src/components/Editor.jsx b/src/components/Editor.jsx
index 28bcd8f..2c86555 100644
--- a/src/components/Editor.jsx
+++ b/src/components/Editor.jsx
@@ -17,6 +17,8 @@ class Editor extends React.Component {
this._editor.setValue(nextProps.source);
}
+ //this disables autoclosing of HTML tags
+ this._editor.setBehavioursEnabled(false);
this._editor.getSession().setAnnotations(nextProps.errors);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment