open-nodes-browser-modal

Type: Operation

Opens the nodes browser in which the user can select a node.

Imported operation data

  1. documentId

    (Required)

    (Optional) Can be used to open the nodes browser with a node preselected. Should only be used in combination with nodeId

  2. insertOperationName

    (Required)

    Type: String

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

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

  3. linkableElementsQuery

    (Required)

    (Optional) The nodes that the user can choose from are specified by the linkableElementsQuery. The default of the linkableElementsQuery is //*[@id] which means all nodes with an @id attribute. Example: If you only want footnodes in your nodes list, the linkableElementsQuery could be //fn.

    Default value

    Type: String

    JSON

    "//*[@id]"
  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 button in the bottom right corner, when clicking this button the selected node will be submitted. The default value for this label is 't__Insert'.

    Default value

    Type: String

    JSON

    "t__Insert"
  6. modalTitle

    (Required)

    Type: String

    (Optional) Specifies the title of the modal which is shown in the upper left corner. The default value for this title is 't__Select an element'.

    Default value

    Type: String

    JSON

    "t__Select an element"
  7. nodeId

    (Required)

    Type: NodeId

    (Optional) Can be used to open the nodes browser with a node preselected. Should only be used in combination with documentId

Exported operation data

  1. documentId

    The documentId of the document where the selected node is in.

  2. nodeId

    Type: NodeId

    The nodeId of the selected node.