Trevixal API
    Preparing search index...

    Function promptForAltText

    • Ask for alt text as each image arrives: when an upload finishes, or an image is inserted or pasted, and it has no description of its own (or only its file's name) and is not marked decorative. ask gets the new image's path; the host opens its prompt there. One prompt per edit, for the first image the edit brought. An undo or redo brings nothing new. Returns a disposer.

      Parameters

      • editor: Editor
      • ask: (path: Path) => void

      Returns () => void