Merge pull request #1599 from danyaPostfactum/nativednd

Use native HTML5 Drag'n'Drop for text.
This commit is contained in:
Lennart Kats 2013-09-20 06:11:43 -07:00
commit ee95161972
10 changed files with 513 additions and 289 deletions

View file

@ -1327,7 +1327,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;