Colibrio Reader Framework API - Cloud license
    Preparing search index...

    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)
    
    interface IContentBlockMarkData {
        attributes: IAttributeData[];
        endOffset: number;
        startOffset: number;
        type: ContentBlockMarkType;
    }

    Properties

    attributes: IAttributeData[]

    Attributes associated with the mark.

    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)
    
    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)
    

    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.