roll back to old transform function, except in pad

pull/1/head
ansuz 7 years ago
parent d10f752457
commit e07bb0f7b3

@ -378,9 +378,7 @@ define([
}).nThen(function (waitFor) {
cpNfInner = common.startRealtime({
// really basic operational transform
transformFunction: options.transformFunction || JsonOT.validate,
patchTransformer: options.patchTransformer || JsonOT.patchTransformer,
transformFunction: options.transformFunction || JsonOT.transform,
// cryptpad debug logging (default is 1)
// logLevel: 0,

@ -30,6 +30,7 @@ define([
'/api/config',
'/common/common-hash.js',
'/common/common-util.js',
'/bower_components/chainpad-json-validator/json-ot.js',
'/bower_components/diff-dom/diffDOM.js',
@ -48,7 +49,8 @@ define([
MediaTag,
ApiConfig,
Hash,
Util)
Util,
JsonOT)
{
var DiffDom = window.diffDOM;
@ -553,6 +555,7 @@ define([
Framework.create({
toolbarContainer: '#cke_1_toolbox',
contentContainer: '#cke_1_contents',
transformFunction: JsonOT.validate,
thumbnail: {
getContainer: function () { return $('iframe').contents().find('html')[0]; },
filter: function (el, before) {

Loading…
Cancel
Save