content-quality-get-context-node-id-and-range
Type: Operation
Can be used to get the needed contextNodeId and range when creating you own custom mutation operations for resolving annotations.
Imported operation data
annotation
Id (Required)
Type: String
The annotation id for which to get the context node id and range.
[context
Node Id Query] (Required)
Type: XPathQuery
(Optional) A XPath query to set the contextNodeId to something other then the one set based on the annotation range. The contextNode for the query is set to the range's commonAncestorContainer. The following variables are available in the query: $RANGE_COMMON_ANCESTOR_CONTAINER_ID, $RANGE_START_CONTAINER_ID, $RANGE_START_CONTAINER, $RANGE_START_OFFSET, $RANGE_END_CONTAINER_ID, $RANGE_END_CONTAINER, and $RANGE_END_OFFSET.
Exported operation data
context
Node Id Type: NodeId
The nodeId of the node which is or contains the annotation range. If the annotation is a whole node, the node's nodeId is used, otherwise the range's commonAncestorContainer nodeId is used.
override
Range Type: OverrideRange
A range object using node Id's instead of nodes for the start and end containers. Used for overriding the affected range of an operation which usually is the selection range.
range
Type: Object
The range object for the annotation. Contains the following properties: commonAncestorContainerId, startContainerId, endContainerId, startOffset, and endOffset.