Skip to content

Commit

Permalink
Fixed configured indentation not being applied to Ace editor (see jos…
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Jan 25, 2015
1 parent f1e49c2 commit 3f6f5d2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ https://github.com/josdejong/jsoneditor
after that throws the error.
- Fixed Node.path() not working for a JSON Object `""`. Thanks @tomalec.
- Minor styling improvements.
- Fixed configured indentation not being applied to Ace editor.


## 2014-09-03, version 3.1.2
Expand Down
4 changes: 2 additions & 2 deletions jsoneditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*
* @author Jos de Jong, <[email protected]>
* @version 3.1.3-SNAPSHOT
* @date 2015-01-23
* @date 2015-01-25
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
Expand Down Expand Up @@ -1181,7 +1181,7 @@ return /******/ (function(modules) { // webpackBootstrap
editor.setShowPrintMargin(false);
editor.setFontSize(13);
editor.getSession().setMode('ace/mode/json');
editor.getSession().setTabSize(2);
editor.getSession().setTabSize(this.indentation);
editor.getSession().setUseSoftTabs(true);
editor.getSession().setUseWrapMode(true);
this.editor = editor;
Expand Down
2 changes: 1 addition & 1 deletion jsoneditor.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions jsoneditor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/textmode.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ define(['./modeswitcher', './util'], function (modeswitcher, util) {
editor.setShowPrintMargin(false);
editor.setFontSize(13);
editor.getSession().setMode('ace/mode/json');
editor.getSession().setTabSize(2);
editor.getSession().setTabSize(this.indentation);
editor.getSession().setUseSoftTabs(true);
editor.getSession().setUseWrapMode(true);
this.editor = editor;
Expand Down

0 comments on commit 3f6f5d2

Please sign in to comment.