DocEngine

Field types · Image

Image image

Image token with URL (and optional caption); host should persist durable URLs.

At a glance

  • Schema type: image
  • Value: { url, caption? }
  • Use when: Photos, logos, and other images in the document body.

Type properties

Options that appear only for Image fields. Shared options (Label, Field Name, Required, …) are on Field types → Common properties.

Max width (px)
Maximum rendered width of the image in the document and PDF.
Alt text
Accessibility / fallback text for the image.
Image upload
Image is chosen when filling the document, not in design mode. Hosts should provide imageUpload for durable URLs.

Details

  • Schema may set maxWidth and altText.
  • Provide createEditor({ imageUpload }) so fill mode does not embed huge data URLs.
  • Salesforce hosts typically upload to Files and store a content URL.
  • PDF/HTML preview resolve the url on the ImageValue.

Other field types

← All field types