Trevixal API
    Preparing search index...

    Function setLinkTarget

    • Set (or clear) the link target on every link touched by the selection.

      '_blank' always carries rel="noopener noreferrer". The mark's toHTML emits the two together, so there is no way to produce a target=_blank link without the rel that prevents reverse tabnabbing. null clears both.

      Declines when the selection touches no link, so it can be chained.

      Parameters

      • target: "_blank" | null

      Returns Command