Trevixal API
    Preparing search index...
    • The image the user is on: a node-selected image, a node-selected figure, or a caret anywhere inside a figure (its caption, in practice). Deliberately stricter than findImage, floating chrome must appear only when something is really selected, never because an image happens to sit nearby.

      Parameters

      • state: EditorState

      Returns ImageHit | null