@univerjs-pro/docs-code-ui
v1.0.3
Published
Code block UI integration for Univer Docs.
Downloads
2,521
Readme
@univerjs-pro/docs-code-ui
@univerjs-pro/docs-code-ui is part of Univer Pro. Code block UI integration for Univer Docs.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry |
| --- | --- | :---: | :---: | :---: |
| @univerjs-pro/docs-code-ui | UniverProDocsCodeUi | Yes | Yes | No |
Installation
pnpm add @univerjs-pro/docs-code-ui
# or
npm install @univerjs-pro/docs-code-uiKeep all @univerjs/* and @univerjs-pro/* packages on the same version.
Usage
import '@univerjs-pro/docs-code-ui/lib/index.css';
import EnUS from '@univerjs-pro/docs-code-ui/locale/en-US';
import { UniverDocsCodeUIPlugin } from '@univerjs-pro/docs-code-ui';
univer.registerPlugin(UniverDocsCodeUIPlugin);
// Merge EnUS into your Univer locale map when this package contributes UI text.Integration Notes
- Keep this package on the same version as the other
@univerjs/*and@univerjs-pro/*packages in your application. - Import the package stylesheet once in the application entry before rendering Univer UI.
- Import locale files only for the languages your application enables.
