@univerjs/docs-thread-comment
Esta página de API está disponible actualmente en inglés. Las firmas y los identificadores no cambian con el idioma.
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
¿Cómo es esta guía?