Trevixal API
    Preparing search index...

    Function selectionNear

    • The nearest valid text selection at or after a (possibly stale) position, used to repair selections after arbitrary document changes.

      Parameters

      Returns TextSelection