1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-01 05:16:10 +01:00

Fix deprecated .move > .moveForward in the after plugin (#2179)

This commit is contained in:
Per-Kristian Nordnes 2018-09-18 03:28:22 +02:00 committed by Ian Storm Taylor
parent 462244600d
commit f75a274c0e

View File

@ -319,7 +319,7 @@ function AfterPlugin() {
selection.end.key == target.end.key &&
selection.end.offset < target.end.offset
) {
target = target.move(
target = target.moveForward(
selection.start.key == selection.end.key
? 0 - selection.end.offset + selection.start.offset
: 0 - selection.end.offset