texthighlight - Annotations API

Text Highlight Module

The following methods are available for the text highlight module.

  • applyHighlight function

    Highlights certain text based on provided information.

  • render function

    Renders stored highlights.

  • setFormatRenderResult function

    Each time a texthighlight is created, you can optimize the highlight information to suit your needs.

  • show function

    Show all the highlighted text.

  • hide function

    Hides all the highlighted text.

  • setBlackListIds function

    You can define what sort of id prefix Annotations API should not store.

  • utils.getPath function

    Retrieves the path (similar to startContainerPath/endContainerPath) based on the provided DOM node element and context.

  • utils.deserializePath function

    Retrieves the DOM node based on the provided path, textNodeOffset and context element.

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.