|
|
@ -86,6 +86,7 @@ define([
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var fixSelection = cursor.fixSelection = function (sel, range) {
|
|
|
|
var fixSelection = cursor.fixSelection = function (sel, range) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
if (Tree.contains(Range.start.el, inner) && Tree.contains(Range.end.el, inner)) {
|
|
|
|
if (Tree.contains(Range.start.el, inner) && Tree.contains(Range.end.el, inner)) {
|
|
|
|
var order = Tree.orderOfNodes(Range.start.el, Range.end.el, inner);
|
|
|
|
var order = Tree.orderOfNodes(Range.start.el, Range.end.el, inner);
|
|
|
|
var backward;
|
|
|
|
var backward;
|
|
|
@ -118,6 +119,7 @@ define([
|
|
|
|
console.error(errText);
|
|
|
|
console.error(errText);
|
|
|
|
return errText;
|
|
|
|
return errText;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch (e) { console.error(e); }
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
cursor.pushDelta = function (oldVal, newVal) {
|
|
|
|
cursor.pushDelta = function (oldVal, newVal) {
|
|
|
|