ContentBlockMarkData

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)

Constructors

Link copied to clipboard
constructor(attributes: List<AttributeData>, endOffset: Int, startOffset: Int, type: ContentBlockMarkType)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Attributes associated with the mark.

Link copied to clipboard

The offset into associated ContentBlock's textContent, describing the end of 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.

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)