Partly fix for #88: Indent mismatch

This commit is contained in:
josdejong 2014-02-19 20:34:41 +01:00
parent 45bed61601
commit ec2b9fffdf
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@
* "text" (default)
* or "code".
* {Number} indentation Number of indentation
* spaces. 4 by default.
* spaces. 2 by default.
* {function} change Callback method
* triggered on change
* @param {JSON | String} [json] initial contents of the formatter
@ -121,6 +121,7 @@ TextEditor.prototype._create = function (container, options, json) {
editor.setShowPrintMargin(false);
editor.setFontSize(13);
editor.getSession().setMode('ace/mode/json');
editor.getSession().setTabSize(2);
editor.getSession().setUseSoftTabs(true);
editor.getSession().setUseWrapMode(true);
this.editor = editor;