From 8c064dd67ec2222d3e6ad2b4a859762827785728 Mon Sep 17 00:00:00 2001 From: Dan Clark Date: Tue, 13 Feb 2024 15:14:11 -0800 Subject: [PATCH] Add note that updateText can have rangeStart > rangeEnd --- index.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.html b/index.html index aa31385..5dfc86d 100644 --- a/index.html +++ b/index.html @@ -1035,9 +1035,7 @@

EditContext Interface

  1. Replace the substring of [=text=] in the range of |rangeStart| and |rangeEnd| with |newText| -
  2. -
  3. -
    Add details regarding rangeStart/rangeEnd vs. [=selection start=]/[=selection end=]
    +
    It's permissible that |rangeStart| > |rangeEnd|. The substring between the indices should be replaced in the same way as when |rangeStart| <= |rangeEnd|.