Closed Bug 1462649 Opened 8 years ago Closed 1 month ago

Editor should have a method to retrieve first start point and end point of Selection and editor code should use them

Categories

(Core :: DOM: Editor, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
Tracking Status
firefox62 --- affected

People

(Reporter: masayuki, Unassigned)

Details

When retrieving first selection range's start point and/or end point, we need to check: * There is first range. * First range is set properly. This needs at least 6 lines (and actually more for empty lines). For reducing the duplicated code, editor should have 3 method to return StartRef() and/or EndRef() of first range of Selection.
Or TextEditRules should have it since it'll hold Selection instance after bug 1460509 is fixed.
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.