Trevixal API
    Preparing search index...

    Function updateLink

    • Change a link's attributes without disturbing its text.

      The case that matters is a bare cursor. setMark('link', …) writes a mark over the selection, so with nothing selected it stores a pending mark and the link the caret is actually sitting in keeps its old address, which looks, from the outside, exactly like an edit that silently did nothing. Here the whole link under the caret is rewritten, the way removing one already works.

      Declines when the selection touches no link, or when nothing would change.

      Parameters

      Returns Command