Switched everything to 2-space indentation
This commit is contained in:
parent
8ddc6f3946
commit
8e07ebb711
|
@ -44,7 +44,7 @@ Constructs a new JSONEditor.
|
|||
True by default.
|
||||
Only applicable when `mode` is 'tree', 'view', or 'form'.
|
||||
- `{Number} indentation`.
|
||||
Number of indentation spaces. 4 by default.
|
||||
Number of indentation spaces. 2 by default.
|
||||
Only applicable when `mode` is 'code' or 'text'.
|
||||
|
||||
- `{JSON} json`
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1039,7 +1039,7 @@ TextEditor.prototype._create = function (container, options, json) {
|
|||
this.indentation = Number(options.indentation);
|
||||
}
|
||||
else {
|
||||
this.indentation = 4; // number of spaces
|
||||
this.indentation = 2; // number of spaces
|
||||
}
|
||||
this.mode = (options.mode == 'code') ? 'code' : 'text';
|
||||
if (this.mode == 'code') {
|
||||
|
|
|
@ -36,7 +36,7 @@ TextEditor.prototype._create = function (container, options, json) {
|
|||
this.indentation = Number(options.indentation);
|
||||
}
|
||||
else {
|
||||
this.indentation = 4; // number of spaces
|
||||
this.indentation = 2; // number of spaces
|
||||
}
|
||||
this.mode = (options.mode == 'code') ? 'code' : 'text';
|
||||
if (this.mode == 'code') {
|
||||
|
|
Loading…
Reference in New Issue