Partly fix for #88: Indent mismatch
This commit is contained in:
parent
45bed61601
commit
ec2b9fffdf
|
@ -7,7 +7,7 @@
|
||||||
* "text" (default)
|
* "text" (default)
|
||||||
* or "code".
|
* or "code".
|
||||||
* {Number} indentation Number of indentation
|
* {Number} indentation Number of indentation
|
||||||
* spaces. 4 by default.
|
* spaces. 2 by default.
|
||||||
* {function} change Callback method
|
* {function} change Callback method
|
||||||
* triggered on change
|
* triggered on change
|
||||||
* @param {JSON | String} [json] initial contents of the formatter
|
* @param {JSON | String} [json] initial contents of the formatter
|
||||||
|
@ -121,6 +121,7 @@ TextEditor.prototype._create = function (container, options, json) {
|
||||||
editor.setShowPrintMargin(false);
|
editor.setShowPrintMargin(false);
|
||||||
editor.setFontSize(13);
|
editor.setFontSize(13);
|
||||||
editor.getSession().setMode('ace/mode/json');
|
editor.getSession().setMode('ace/mode/json');
|
||||||
|
editor.getSession().setTabSize(2);
|
||||||
editor.getSession().setUseSoftTabs(true);
|
editor.getSession().setUseSoftTabs(true);
|
||||||
editor.getSession().setUseWrapMode(true);
|
editor.getSession().setUseWrapMode(true);
|
||||||
this.editor = editor;
|
this.editor = editor;
|
||||||
|
|
Loading…
Reference in New Issue