@univerjs-pro/docs-sdt
v1.2.0
Published
Structured document tag support for Univer Pro Docs.
Readme
@univerjs-pro/docs-sdt
Structured document tag (SDT) commands for Univer Pro Docs. Register UniverDocsSdtPlugin together with the Docs and license plugins. Add @univerjs-pro/docs-sdt-ui for interactive controls.
Value changes, properties, removal and repeating-section changes use document commands and participate in undo/redo. SDT ranges retain their content-control identity and lock metadata; editing must respect both content and control locks.
DOCX conversion belongs to Univer Exchange, not this package. A supported editor operation does not imply lossless support for every Word SDT property or custom XML binding.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry |
| --- | --- | :---: | :---: | :---: |
| @univerjs-pro/docs-sdt | UniverProDocsSdt | No | No | No |
Installation
pnpm add @univerjs-pro/docs-sdt
# or
npm install @univerjs-pro/docs-sdtKeep all @univerjs/* and @univerjs-pro/* packages on the same version.
Usage
import { UniverDocsSdtPlugin } from '@univerjs-pro/docs-sdt';
univer.registerPlugin(UniverDocsSdtPlugin);Integration Notes
- Keep all
@univerjs/*and@univerjs-pro/*packages on the same version.
