mirror of
https://github.com/dream-num/univer.git
synced 2026-10-16 15:17:56 +08:00
1.4 KiB
1.4 KiB
@univerjs/docs-toc
@univerjs/docs-toc provides table-of-contents insertion, update, deletion, and FIELD-range lookup for Univer Docs.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry |
|---|---|---|---|---|
@univerjs/docs-toc |
UniverDocsToc |
No | No | No |
Installation
pnpm add @univerjs/docs-toc
# or
npm install @univerjs/docs-toc
Keep all @univerjs/* packages on the same version.
Usage
import { UniverDocsTocPlugin } from '@univerjs/docs-toc';
univer.registerPlugin(UniverDocsTocPlugin);
Use this package with @univerjs/docs-toc-ui when users need Ribbon, context-menu, dialog, and active-range feedback.
The updater currently evaluates outline-based TOC instructions (\\o). Other Word TOC switches are retained in FIELD metadata but are not all evaluated.