open-web-reference-modal-for-insert

Type: Operation

Opens the web reference modal for inserting a web reference.

If this operation is executed while the selected text is a valid URL, the modal is skipped and the url step data property is set to that URL directly. This simplifies the process of converting a selected plain text URL to a reference.

Imported operation data

  1. 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.

  2. modalPrimaryButtonLabel

    (Required)

    Type: String

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

  3. modalTitle

    (Required)

    Type: String

    (Optional) The title being shown at the top of the modal. Defaults to t__Edit hyperlink.

  4. url

    (Required)

    Type: String

    (Optional) The url to be inserted. This will be empty when inserting a new web reference.

Exported operation data

  1. url

    Type: String

    The URL as entered by the user or selected in the content if the modal was skipped.