diff --git a/src/transforms/apply-operation.js b/src/transforms/apply-operation.js index d5e5c20a3..6ebe9aed8 100644 --- a/src/transforms/apply-operation.js +++ b/src/transforms/apply-operation.js @@ -231,10 +231,10 @@ function removeText(state, operation) { // Update the selection if (startKey == node.key && startOffset >= rangeOffset) { - selection = selection.extendStartOffset(-length) + selection = selection.moveStartOffset(-length) } if (endKey == node.key && endOffset >= rangeOffset) { - selection = selection.extendEndOffset(-length) + selection = selection.moveEndOffset(-length) } state = state.merge({ document, selection })