ConnectorsManager

How to get connectorsManager

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

Type: Class

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

Name Description
getCmsClient

Retrieve the cmsClient.


  Returns

Type: CmsClient

The cmsClient.

getConnector

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
# Name Type Description
1. key String

The connector to get.

  Returns

Type: Object

The connector.

setCmsClient

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


  Arguments
# Name Type Description
1. client CmsClient

The actual cmsClient instance.

setConnector

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
# Name Type Description
1. key String

The key of the connector.

2. connector Object

The actual connector instance.

Was this page helpful?