Skip to content

Commit 06467f3

Browse files
authored
Add note that updateText can have rangeStart > rangeEnd (#90)
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
1 parent 2531aac commit 06467f3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,9 +1035,7 @@ <h3 id="editcontext-interface">EditContext Interface</h3>
10351035
<ol>
10361036
<li>
10371037
Replace the substring of [=text=] in the range of |rangeStart| and |rangeEnd| with |newText|
1038-
</li>
1039-
<li>
1040-
<div class="note">Add details regarding rangeStart/rangeEnd vs. [=selection start=]/[=selection end=]</div>
1038+
<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>
10411039
</li>
10421040
</ol>
10431041
</div>

0 commit comments

Comments
 (0)