@danmeon/univer-docs
v1.5.2-carenode.7
Published
Unofficial Carenode fork of @univerjs/docs 1.5.2 (Univer by DreamNum), not an official Univer release. Core document model and rich-text operations for Univer Docs.
Maintainers
Readme
Unofficial build.
@danmeon/[email protected]is a Carenode fork of@univerjs/docs1.5.2 from Univer by DreamNum. It is not an official Univer release and DreamNum does not support it. It is distributed under the same Apache-2.0 license (see LICENSE).Built from
DanMeon/univerbranchcarenode/v1.5.2, commit47617674e922d90bb50e1dd62b6efc6106193dd0.
Source files changed from upstream v1.5.2 in this package: none. Only the package name, version and this notice differ; the code was rebuilt from the upstream source.
@univerjs/docs
@univerjs/docs provides the document data model and core rich-text operations for Univer Docs, independent of the UI layer.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
| --- | --- | :---: | :---: | :---: | :---: |
| @univerjs/docs | UniverDocs | No | No | Yes | Yes |
Installation
pnpm add @univerjs/docs
# or
npm install @univerjs/docsUsage
Start with the integration setup for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
import { UniverDocsPlugin } from '@univerjs/docs';
univer.registerPlugin(UniverDocsPlugin);Worker usage
On the main thread, import UniverDocsLayoutWorkerPlugin from @univerjs/docs. Register it alongside UniverDocsPlugin and set workerFactory to a function that creates the layout worker.
In the worker entry, import UniverDocsWorkerPlugin from @univerjs/docs/worker:
import { UniverDocsWorkerPlugin } from '@univerjs/docs/worker';
univer.registerPlugin(UniverDocsWorkerPlugin);Integration Notes
- Import
@univerjs/docs/facadewhen using this package through Univer Facade APIs.
