From a5e156054a9fa01378d8feaf15924b1f0e39ca55 Mon Sep 17 00:00:00 2001 From: najorcruzcruz Date: Fri, 22 Aug 2014 14:13:58 +0200 Subject: [PATCH] Selecting and typing text. When selecting and typing text, the range was wrong, so the text was inserted in the wrong position. --- src/typing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/typing.js b/src/typing.js index baec57d46c..e169b36ac8 100644 --- a/src/typing.js +++ b/src/typing.js @@ -398,7 +398,7 @@ define([ if (handling.undo) { undoable(handling.undo, event, function () { if (handling.deleteRange && !range.collapsed) { - remove(false, event); + event.range = remove(false, event); } event.range = handling.mutate(event); Html.prop(range.commonAncestorContainer);