API 참조

@univerjs-pro/docs-sdt

이 API 페이지의 본문은 현재 영어로 제공됩니다. 코드 시그니처와 식별자는 언어에 따라 바뀌지 않습니다.

Structured document tag (SDT) commands for Docs content controls. Register the Docs core and license plugins first, then add this plugin and the optional @univerjs-pro/docs-sdt-ui editor controls.

TypeScript
import { UniverDocsSdtPlugin } from '@univerjs-pro/docs-sdt'univer.registerPlugin(UniverDocsSdtPlugin)

Commands and locks

The root exports UpdateSdtValueCommand, UpdateSdtPropertiesCommand, RemoveSdtCommand, DuplicateRepeatingSdtItemCommand, DeleteRepeatingSdtItemCommand, and their parameter types. Run them through the command service or univerAPI.executeCommand() so edits participate in undo/redo.

Content controls live in IDocumentBody.customRanges, with their properties in ISdtCustomRange.properties. Content locks prevent value edits; control locks prevent removing the wrapper. Repeating sections can also disallow item insertion and deletion. The root exports isSdtContentLocked, isSdtWrapperLocked, and findSdtAtOffset for integrations.

This package has no stylesheet, locales, or Facade entry. DOCX conversion belongs to Exchange; editor support does not guarantee lossless support for every Word property or custom XML binding. See the content-controls guide.

이 가이드는 어떠셨나요?

© 2026 DreamNum Co., Ltd.