matrix-react-sdk
eb873018 - allow getting the DocumentOffset for any node+offset, not just focusNode

Commit
6 years ago
allow getting the DocumentOffset for any node+offset, not just focusNode we need this to get both offsets of the selection boundaries getSelectionOffsetAndText offers the extra flexibility, getCaretOffsetAndText keeps the old api for focusNode/focusOffset Also did some renaming here now that it's not just for the caret anymore
Author
Parents
Loading