Options
All
  • Public
  • Public/Protected
  • All
Menu

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)

Hierarchy

  • IContentBlockMarkData

Index

Properties

attributes

attributes: IAttributeData[]

Attributes associated with the mark.

endOffset

endOffset: number

The offset into associated ContentBlock's textContent, describing the end of the mark.

You can get the text for a mark using:

contentBlock.getTextContent().slice(mark.startOffset, mark.endOffset)
int

startOffset

startOffset: number

The offset into associated ContentBlock's textContent, describing the start of the mark.

You can get the text for a mark using:

contentBlock.getTextContent().slice(mark.startOffset, mark.endOffset)
int

type

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.

Generated using TypeDoc