Content Quality Manager
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
documents
Hierarchy (Required)
Type: DocumentsHierarchy
documents
Manager (Required)
Type: DocumentsManager
squiggle
Manager (Required)
Type: SquiggleManager
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
enabled
(Required)
Type: Boolean
Properties
busy Changed Notifier
Type: Notifier
Notifier that can be used to be notified when the busy state has changed.
Methods
clear Active Annotation Ids
Type: Function
Clear the active annotation ids.
is Busy
Type: Function
Get the current busy state.
Returns
register Annotation Type
Type: Function
Add configuration for an annotation type.
Arguments
register Fixed Sidebar Item
Type: Function
Add configuration for a fixed item in the Content Quality pane.
Arguments
set Active Annotation Ids
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