Skip to content

Commit

Permalink
Add note that updateText can have rangeStart > rangeEnd (#90)
Browse files Browse the repository at this point in the history
Per discussion in #81, add note clarifying that updateStart() can have updateRangeStart > updateRangeEnd.
Replace old note that doesn't seem to apply anymore.

Closes #81
  • Loading branch information
dandclark authored Feb 14, 2024
1 parent 2531aac commit 06467f3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1035,9 +1035,7 @@ <h3 id="editcontext-interface">EditContext Interface</h3>
<ol>
<li>
Replace the substring of [=text=] in the range of |rangeStart| and |rangeEnd| with |newText|
</li>
<li>
<div class="note">Add details regarding rangeStart/rangeEnd vs. [=selection start=]/[=selection end=]</div>
<div class="note">It's permissible that |rangeStart| > |rangeEnd|. The substring between the indices should be replaced in the same way as when |rangeStart| <= |rangeEnd|.</div>
</li>
</ol>
</div>
Expand Down

0 comments on commit 06467f3

Please sign in to comment.