Velt Comments
component to the root of your app.text mode
prop to false
to hide the default text comment tool.CommentNode
and configure your Lexical editor.addComment
to add a commentAddCommentRequest
editorId
: string, the id of the editor. Use this if you have multiple editors in your app.editor
: instance of the Lexical editor.context
: optional object to set the Comment Annotation’s custom metadata.RenderCommentsRequest
editorId
: string, the id of the editor. Use this if you have multiple editors in your app.editor
: instance of the Lexical editor.commentAnnotations
: CommentAnnotation[]velt-comment-text
element.comment-available
attribute, you can apply styles only when the comment data has loaded.addComment: async (request:
AddCommentRequest) => Promise<void>
AddCommentRequest
Promise<void>
renderComments: (request:
RenderCommentsRequest) => void
RenderCommentsRequest
void
ElementNode
that wraps text content with comment annotation metadata, including Velt annotation IDs.
ElementNode
exportJSONWithoutComments(editor: LexicalEditor): SerializedEditorState<SerializedLexicalNode>
editor:
LexicalEditor
SerializedEditorState<SerializedLexicalNode>