Migrate indentation settings to a settings subobject

This commit is contained in:
yflory
2017-08-30 17:19:50 +02:00
parent 0893bcc0e5
commit f54dc7505c
4 changed files with 74 additions and 4 deletions

View File

@@ -81,7 +81,7 @@ define([
};
var andThen = function (editor, CodeMirror, common) {
var readOnly = false; // TODO
var readOnly = false;
var cpNfInner;
var metadataMgr;
var onLocal;
@@ -113,8 +113,6 @@ define([
var indentKey = 'cryptpad.indentUnit';
var useTabsKey = 'cryptpad.indentWithTabs';
//var proxy = Cryptpad.getProxy();
var updateIndentSettings = function () {
var indentUnit = proxy[indentKey];
var useTabs = proxy[useTabsKey];