open-image-browser-modal

Type: Operation

Opens the image browser in which the user can select an image.

Imported operation data

  1. browseContextDocumentId

    (Required)

    This id is sent to the CMS when the browse call is made. If the CMS resolves a hierarchy for a reference in the metadata of a reference, the folder containing the browseContextDocument will be opened.

  2. dataProviderName

    (Required)

    Type: String

    Default value

    Type: String

    JSON

    "dataProviderUsingConfiguredConnectorsForImages"
  3. insertOperationName

    (Required)

    Type: String

    (Optional) The primary button will be disabled if the selected image can't be inserted with the 'insert operation'.

    The operation data collected until the current operation together with the selected image, will be added as initial data to the 'insert operation'.

  4. modalIcon

    (Required)

    Type: String

    (Optional) The icon to show at the top of the modal. This should be one of the Font Awesome icons. Do not include the fa- prefix, just use the icon names as-is from the documentation.

  5. modalPrimaryButtonLabel

    (Required)

    Type: String

    (Optional) The label for the primary button. Defaults to t__Insert.

  6. modalTitle

    (Required)

    Type: String

    (Optional) The title being shown at the top of the modal. Defaults to t__Select an image.

  7. selectedImageId

    (Required)

    Type: AssetId

    (Optional) Can be used to open the image browser with an image preselected.

Exported operation data

  1. selectedImageId

    Type: AssetId

    The remoteId of the selected image.