Content Block Mark Data
data class ContentBlockMarkData(val attributes: List<AttributeData>, val endOffset: Int, val startOffset: Int, val type: ContentBlockMarkType)
Further describes parts of the textContent in a IContentBlock. Marks represents inline Elements, such as the HTML elements <em>, <strong> and <a>. Please see ContentBlockMarkType for a full list of supported mark types.
You can get the text for a mark using:
contentBlock.getTextContent().slice(mark.startOffset, mark.endOffset)Content copied to clipboard
Constructors
Link copied to clipboard
constructor(attributes: List<AttributeData>, endOffset: Int, startOffset: Int, type: ContentBlockMarkType)
Properties
Link copied to clipboard
Attributes associated with the mark.
Link copied to clipboard
The offset into associated ContentBlock's textContent, describing the start of the mark.
Link copied to clipboard
Describes the type of mark. Marks represents inline Elements, such as the HTML elements <em>, <strong> and <a>. Please see ContentBlockMarkType for a full list of supported mark types.