OptionalattributesAttributes to set. If the descriptor is used to create an module:engine/view/attributeelement~ViewAttributeElement attribute element over text nodes, these attributes will be set on that attribute element. If the descriptor is applied to an element, usually these attributes will be set on that element, however, this depends on how the element converts the descriptor.
A CSS class or an array of classes to set. If the descriptor is used to create an module:engine/view/attributeelement~ViewAttributeElement attribute element over text nodes, these classes will be set on that attribute element. If the descriptor is applied to an element, usually these classes will be set on that element, however, this depends on how the element converts the descriptor.
OptionalidDescriptor identifier. If not provided, it defaults to the converted marker's name.
OptionalpriorityDescriptor priority. If not provided, it defaults to 10. If the descriptor is used to create
an module:engine/view/attributeelement~ViewAttributeElement attribute element, it will be that element's
module:engine/view/attributeelement~ViewAttributeElement#priority priority. If the descriptor is applied to an element,
the priority will be used to determine which descriptor is more important.
An object describing how the marker highlight should be represented in the view.
Each text node contained in a highlighted range will be wrapped in a
<span>module:engine/view/attributeelement~ViewAttributeElement view attribute element with CSS class(es), attributes and a priority described by this object.Additionally, each module:engine/view/containerelement~ViewContainerElement container element can handle displaying the highlight separately by providing the
addHighlightandremoveHighlightcustom properties. In this case:DowncastHighlightDescriptorobject is passed to theaddHighlightfunction upon conversion and should be used to apply the highlight to the element.idis passed to theremoveHighlightfunction upon conversion and should be used to remove the highlight with the given ID from the element.