ContentQualityManager

Type: Class

How to get contentQualityManager?

JavaScript

import contentQualityManager from 'fontoxml-content-quality/src/contentQualityManager.js'

The ContentQualityManager provides an interface to register annotation types for Content Quality.

Constructor arguments

  1. documentsHierarchy

    (Required)

  2. documentsManager

    (Required)

  3. squiggleManager

    (Required)

    Type: SquiggleManager

  4. configuration

    (Required)

    Type: Object

    Configuration for Content Quality. Typically you only need to set the chunkIsContentQuery to ignore some of the elements which do not contain contents. And/or set the baseIETFLanguageQuery and nodeIETFLanguageQuery if you use a non use the xml:lang attribute for languages or have you own default fallback language.

    Properties

  5. enabled

    (Required)

    Type: Boolean

Properties

busyChangedNotifier

Type: Notifier

Notifier that can be used to be notified when the busy state has changed.

Methods

clearActiveAnnotationIds

Type: Function

Clear the active annotation ids.

isBusy

Type: Function

Get the current busy state.

Returns

registerAnnotationType

Type: Function

Add configuration for an annotation type.

Arguments

registerFixedSidebarItem

Type: Function

Add configuration for a fixed item in the Content Quality pane.

Arguments

setActiveAnnotationIds

Type: Function

Set the last active annotation ids. They will be filtered and sorted based on the current annotations.

NOTE: For now only the first annotation id will be used.

Arguments