You can programmatically modify the properties of the comment just before it is created.
The comment.
Set default text of a Comment
NutrientViewer.load({ onCommentCreationStart: comment => comment.set('text', { format: 'xhtml', value: '<p>This comment has a default value</p>' }) // ...}); Copy
NutrientViewer.load({ onCommentCreationStart: comment => comment.set('text', { format: 'xhtml', value: '<p>This comment has a default value</p>' }) // ...});
You can programmatically modify the properties of the comment just before it is created.