Refactored out TextPatcher and JsonOT and replaced with new ChainPad

This commit is contained in:
Caleb James DeLisle
2017-11-09 15:36:49 +01:00
parent 7f8147b18b
commit 75130150d5
31 changed files with 82 additions and 1447 deletions

View File

@@ -1,8 +1,7 @@
define([
'jquery',
'/bower_components/chainpad-json-validator/json-ot.js',
'/bower_components/chainpad/chainpad.dist.js',
], function ($, JsonOT) {
], function ($) {
var ChainPad = window.ChainPad;
var History = {};
@@ -31,7 +30,7 @@ define([
}
},
initialState: '',
transformFunction: JsonOT.validate,
patchTransformer: ChainPad.NaiveJSONTransformer,
logLevel: 0,
noPrune: true
});