This commit is contained in:
Caleb James DeLisle
2016-03-25 16:49:27 +01:00
parent 62eabbc7ae
commit 98c85cef8b
3 changed files with 4 additions and 7 deletions

View File

@@ -174,14 +174,11 @@ define([
// apply patches, and try not to lose the cursor in the process!
var applyHjson = function (shjson) {
//setEditable(false);
console.log(now());
var userDocStateDom = Convert.hjson.to.dom(JSON.parse(shjson));
userDocStateDom.setAttribute("contenteditable", "true"); // lol wtf
console.log(now());
//assertStateMatches();
var patch = (DD).diff(inner, userDocStateDom);
(DD).apply(inner, patch);
console.log(now());
// push back to the textarea so we get a userDocState
//setEditable(true);
};