API 참조

@univerjs/docs-thread-comment

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

Model commands and Facade APIs for comments anchored to fixed document text ranges. This package has no UI dependency and can run in Node.js.

TypeScript
import { UniverDocsThreadCommentPlugin } from '@univerjs/docs-thread-comment'import '@univerjs/docs-thread-comment/facade'univer.registerPlugin(UniverDocsThreadCommentPlugin)const range = univerAPI.getActiveDocument()?.getTextRange(0, 12)await range?.createCommentAsync('Verify this introduction.', { id: 'review-intro' })

The Facade entry adds createCommentAsync(), getComments(), and listCommentsAsync() to FDocumentTextRange. Add @univerjs/docs-thread-comment-ui when menus, decorations, and the shared comment panel are required.

Entry Points

  • Facade: @univerjs/docs-thread-comment/facade

이 가이드는 어떠셨나요?

© 2026 DreamNum Co., Ltd.