@univerjs/docs-thread-comment
Cette page API est actuellement disponible en anglais. Les signatures et identifiants restent identiques dans toutes les langues.
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
Que pensez-vous de ce guide ?