Some checks failed
📦 Build / build (push) Has been cancelled
🧪 CI Test / test shard (1/4) (push) Has been cancelled
🧪 CI Test / test shard (2/4) (push) Has been cancelled
🧪 CI Test / test shard (3/4) (push) Has been cancelled
🧪 CI Test / test shard (4/4) (push) Has been cancelled
🧪 CI Test / test (push) Has been cancelled
🧪 CI Test / eslint (push) Has been cancelled
🧪 CI Test / typecheck (push) Has been cancelled
🔫 Sync to Pro / dispatch-sync (push) Has been cancelled
🔮 Sync Mirror / sync (push) Has been cancelled
38 lines
1.1 KiB
Markdown
38 lines
1.1 KiB
Markdown
# @univerjs/docs
|
|
|
|
[](https://npmjs.com/package/@univerjs/docs)
|
|
[](https://npmjs.com/package/@univerjs/docs)
|
|
[](https://npmjs.com/package/@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 |
|
|
| --- | --- | :---: | :---: | :---: |
|
|
| `@univerjs/docs` | `UniverDocs` | No | No | Yes |
|
|
|
|
## Installation
|
|
|
|
```sh
|
|
pnpm add @univerjs/docs
|
|
# or
|
|
npm install @univerjs/docs
|
|
```
|
|
|
|
Keep all `@univerjs/*` packages on the same version.
|
|
|
|
## Usage
|
|
|
|
```ts
|
|
import { UniverDocsPlugin } from '@univerjs/docs';
|
|
|
|
univer.registerPlugin(UniverDocsPlugin);
|
|
```
|
|
|
|
## Resources
|
|
|
|
- [Documentation](https://docs.univer.ai)
|
|
- [NPM package](https://npmjs.com/package/@univerjs/docs)
|
|
- [GitHub repository](https://github.com/dream-num/univer)
|