|
|
@ -197,6 +197,11 @@ define([
|
|
|
|
// build a dom from HJSON, diff, and patch the editor
|
|
|
|
// build a dom from HJSON, diff, and patch the editor
|
|
|
|
applyHjson(shjson);
|
|
|
|
applyHjson(shjson);
|
|
|
|
//updateDebugTextarea(shjson);
|
|
|
|
//updateDebugTextarea(shjson);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var shjson2 = JSON.stringify(Convert.core.hyperjson.fromDOM(inner));
|
|
|
|
|
|
|
|
if (shjson2 !== shjson) {
|
|
|
|
|
|
|
|
throw new Error("change after conversion");
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var onInit = function (info) {
|
|
|
|
var onInit = function (info) {
|
|
|
@ -260,9 +265,7 @@ define([
|
|
|
|
var rti = module.realtimeInput = window.rti = realtimeInput.start(realtimeOptions);
|
|
|
|
var rti = module.realtimeInput = window.rti = realtimeInput.start(realtimeOptions);
|
|
|
|
|
|
|
|
|
|
|
|
var propogate = window.cryptpad_propogate = function () {
|
|
|
|
var propogate = window.cryptpad_propogate = function () {
|
|
|
|
var hjson = Convert.core.hyperjson.fromDOM(inner, isNotMagicLine);
|
|
|
|
var shjson = JSON.stringify(Convert.core.hyperjson.fromDOM(inner, isNotMagicLine));
|
|
|
|
var shjson = JSON.stringify(hjson);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!rti.propogate(shjson)) { return; }
|
|
|
|
if (!rti.propogate(shjson)) { return; }
|
|
|
|
rti.onEvent(shjson);
|
|
|
|
rti.onEvent(shjson);
|
|
|
|
};
|
|
|
|
};
|
|
|
|