Nutrient Web SDK
    Preparing search index...

    Type Alias OnCommentCreationStartCallback

    OnCommentCreationStartCallback: (
        comment: NutrientViewer.Comment,
    ) => NutrientViewer.Comment

    You can programmatically modify the properties of the comment just before it is created.

    Type Declaration

    Set default text of a Comment

    NutrientViewer.load({
    onCommentCreationStart: comment => comment.set('text', { format: 'xhtml', value: '<p>This comment has a default value</p>' })
    // ...
    });