Add `TextPosition.relativeTo` method
Add a method that converts a text position within an element to one where the offset is relative to some ancestor element. This operation will be needed for replacing existing Range => (element, start, end) conversions with a single one based on `TextRange` and `TextPosition`.
Showing
Please register or sign in to comment