ConnectorsManager

Type: Class

How to get connectorsManager?

JavaScript

import connectorsManager from 'fontoxml-configuration/src/connectorsManager.js'

Manages the connectors and cmsClients configured for the application.

Setting connectors and cmsClients must only be done in the configuration phase of the editor, just like setting configuration in the configurationManager.

Methods

getCmsClient

Type: Function

Retrieve the cmsClient.

Returns

getConnector

Type: Function

Retrieves the connector with the specified key. Undefined if the connector is not set.

The Fonto SDK automatically registers certain connectors under certain keys. The public keys are listed below.

fontoxml-connectors-standard:

fontoxml-content-quality:

  • 'content-quality-connector' (this is a different dedicated connector that is only used by this addon, it does not override any standard connector)

Arguments

Returns

setCmsClient

Type: Function

Set the cmsClient to be used in the application by all connectors.

Arguments

setConnector

Type: Function

Set a connector to be used in the application.

See the #getConnector method below for details on which keys are used by the platform.

Arguments