DocumentLoader

Type: Class

How to get documentLoader?

JavaScript

import documentLoader from 'fontoxml-remote-documents/src/documentLoader.js'

The DocumentLoader manages and de-duplicates load requests for documents and adds corresponding instances to the DocumentsManager.

Documents in the CMS are identified to by their documentId in the CMS connectors API. As a loaded document is assigned a DocumentId to identify its local instance, other APIs generally refer to the CMS ID as the RemoteDocumentId.

Methods

loadDocument

Type: Function

Request the document with the given ID to be loaded

Arguments

Returns

loadRelatedDocument

Type: Function

Request the document referred to by the given ID to be loaded, passing the given referrer to the CMS if a request is sent.

Arguments

Returns