CreateDocAuthSystemOptions
CreateDocAuthSystemOptions:
{}Configuration options for creating a Document Authoring system.
Examples
Section titled “Examples”// Basic setup with CDN assets// Don't forget your license key with all the examples below licenseKey: 'YOUR_LICENSE_KEY',});// Self-hosted assets assets: { base: '/static/assets/', },});// With custom fonts using FontFile
fontConfig: { fonts: [ { type: 'file', blob: fetch('/fonts/custom-font.ttf') }, { type: 'file', blob: fetch('/fonts/another-font.ttf') }, ], },});// With custom font index for large font libraries fontConfig: { fonts: [ { type: 'index', index: fetch('/fonts/font-index.json'), loadFn: (name) => fetch(`/fonts/${name}`), }, ], },});// Complete configuration licenseKey: 'YOUR_LICENSE_KEY', assets: { base: '/static/docauth/', }, fontConfig: { fonts: [ { type: 'index', index: fetch('/fonts/corporate-fonts.json'), loadFn: (name) => fetch(`/fonts/${name}`), }, ], },});createDocAuthSystemfor creating a system instance.FontConfigfor font configuration details.Assetsfor asset hosting configuration.
Properties
Section titled “Properties”licenseKey?
Section titled “licenseKey?”
optionallicenseKey:string
assets?
Section titled “assets?”
optionalassets:Assets
Assets configuration. If unset the system will use the assets from a CDN.
Self-hosting assets guide for information about hosting assets elsewhere.
optionalfontConfig:FontConfig