License
Obtain a Web SDK license and configure it in your browser application.
For features that require a license, visit the Univer website to check the available licensing options and obtain a license. Configure the client license content using either preset mode or plugin mode, whichever your project uses.
Preset mode
Add license to your existing preset configuration. For example, with UniverSheetsAdvancedPreset:
UniverSheetsAdvancedPreset({ // Keep your other options and replace this placeholder with the client license content. license: 'YOUR_CLIENT_LICENSE',})Provide the license content, not the path to a license file.
Plugin mode
Register UniverLicensePlugin on your existing Univer instance, before other plugins:
import { UniverLicensePlugin } from '@univerjs-pro/license'univer.registerPlugin(UniverLicensePlugin, { license: 'YOUR_CLIENT_LICENSE',})Collaborative applications
Collaborative applications also configure the license in the browser. The browser example in Office Quick Start shows where to register the license plugin alongside collaboration plugins. Keep browser and server packages aligned with SDK environment and version requirements.
A license determines which features are available. Your application's permissions determine who may view or edit a document. After configuring the license, follow server integration to connect login and document permissions.
Check the configuration
Reopen the application and try the features you need. If watermarks or license restrictions remain, check that the license content is complete, still valid, and covers the feature and release. In plugin mode, also check registration order. Contact your license provider if the issue remains.
How is this guide?