Trevixal API
    Preparing search index...

    Function setImageCaption

    • Replace an image's caption text, wrapping the image in a figure first when it has none, so a host setting a caption from outside the editor does not have to know whether one exists yet.

      Parameters

      • text: string
      • Optionalat: Path

      Returns Command