Use InsertReviewAnnotationDropButton to insert new comments

Use the InsertReviewAnnotationDropButton to let users insert comments in the document.

InsertReviewAnnotationDropButton is a React component that uses FDS/FX to create a Button which opens a Drop with MenuItems in it to create an annotation of each of the registered annotation types. For object comments, it will only render the button if the selection is placed in an element that meets the enabledSelector query.

You can render this component anywhere you like (we recommend something like the "Start" and/or "Tools" tab of the editor masthead). It is rendered by default in the "Comments" sidebar provided by the fontoxml-feedback add-on, this cannot be customized.

Clicking one of the menu items in this component will also open the "Comments" sidebar if it isn't open already.