Partly fix for #88: Indent mismatch
This commit is contained in:
parent
45bed61601
commit
ec2b9fffdf
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue