Use native HTML5 Drag'n'Drop for text.

This commit is contained in:
DanyaPostfactum 2013-09-10 21:41:20 +10:00
commit 8936861338
9 changed files with 457 additions and 288 deletions

View file

@ -1325,7 +1325,7 @@ var EditSession = function(text, mode) {
}
}
this.insert(toRange.start, text);
toRange.end = this.insert(toRange.start, text);
if (folds.length) {
var oldStart = fromRange.start;
var newStart = toRange.start;