small fixes
This commit is contained in:
parent
3415d0ee5e
commit
530210ca63
@ -307,7 +307,6 @@
|
|||||||
this.xml.appendChild(n.val(enforce));
|
this.xml.appendChild(n.val(enforce));
|
||||||
} else if (n.type === "TextNodeType") {
|
} else if (n.type === "TextNodeType") {
|
||||||
text_node = n.val();
|
text_node = n.val();
|
||||||
text_node._yatta = this;
|
|
||||||
this.xml.appendChild(text_node);
|
this.xml.appendChild(text_node);
|
||||||
} else {
|
} else {
|
||||||
throw new Error("Internal structure cannot be transformed to dom");
|
throw new Error("Internal structure cannot be transformed to dom");
|
||||||
@ -368,7 +367,7 @@
|
|||||||
HB.addOperation(d).execute();
|
HB.addOperation(d).execute();
|
||||||
content._yatta = null;
|
content._yatta = null;
|
||||||
}
|
}
|
||||||
this._yatta = this;
|
content._yatta = this;
|
||||||
TextNodeType.__super__.constructor.call(this, uid, content);
|
TextNodeType.__super__.constructor.call(this, uid, content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
@ -63,5 +63,13 @@ Connect to other peer.
|
|||||||
|
|
||||||
yatta.val($("#collaborative")[0])
|
yatta.val($("#collaborative")[0])
|
||||||
console.log(yatta.getUserId());
|
console.log(yatta.getUserId());
|
||||||
|
$("#collaborative").attr("contenteditable","true");
|
||||||
|
$("#collaborative")[0].onkeyup = function(){
|
||||||
|
console.log("dtrn");
|
||||||
|
console.log("rtdn");
|
||||||
|
}
|
||||||
|
$("p")[0].onfocus = function(){
|
||||||
|
console.log("nrtduiaenrtduiaer");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
@ -54,4 +54,12 @@ Y.createPeerJsConnector({key: 'h7nlefbgavh1tt9'}, function(Connector, user_id){
|
|||||||
|
|
||||||
yatta.val($("#collaborative")[0])
|
yatta.val($("#collaborative")[0])
|
||||||
console.log(yatta.getUserId());
|
console.log(yatta.getUserId());
|
||||||
|
$("#collaborative").attr("contenteditable","true");
|
||||||
|
$("#collaborative")[0].onkeyup = function(){
|
||||||
|
console.log("dtrn");
|
||||||
|
console.log("rtdn");
|
||||||
|
}
|
||||||
|
$("p")[0].onfocus = function(){
|
||||||
|
console.log("nrtduiaenrtduiaer");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user