Using TinyMCE Comments
Overview
This guide provides instructions for using the comments plugin, including how to:
-
add new comments to selected content
-
view comments using the sidebar
-
delete all conversations in a document
To try these steps, use the Comments interactive example.
| The editor must contain content before a comment can be added. |
Add a comment
-
Select the content to comment on.
-
Start a new comment in one of the following ways:
-
Choose Insert → Add comment.
-
Click the Add comment
toolbar button.
-
Press
Ctrl+Alt+M(Windows/Linux) orCmd+Option+M(macOS).
-
-
The Comments sidebar opens with an empty comment box. The placeholder text is "Add comment…", or "Comment or mention with @" when mentions are enabled.
-
Type the comment. To add a new line, press Shift+Enter.
-
Click Save or press Enter to save the comment, or click Cancel to discard it.
Result: The selected content is highlighted in the editor, and the comment is displayed in the Comments sidebar.
Replying to comments
-
Select the conversation in the editor or in the Comments sidebar.
-
In the conversation, click Add comment….
-
Type the reply.
-
Click Save or press Enter to save the reply, or click Cancel to discard it.
Edit a comment
-
Click the ellipsis
icon on the comment to open the menu.
-
Select Edit.
-
Change the comment, then click Save, or click Cancel to discard the changes.
Delete a comment
This option is available for replies only. To delete the first comment in a conversation, delete the conversation.
-
Click the ellipsis
icon on the comment to open the menu.
-
Select Delete.
-
In the Delete Comment dialog, click Delete to delete the comment, or Cancel to keep it.
Delete a comment thread (conversation)
This option is available on the first comment in a conversation only.
-
Click the ellipsis
icon on the first comment to open the menu.
-
Select Delete conversation.
-
The Delete Conversation dialog states how many comments will be deleted. Click Delete to delete the conversation, or Cancel to keep it.
Result: The conversation and all of its comments are deleted from the document.
Resolve a comment thread (conversation)
This option is available on the first comment in a conversation only, and requires the tinycomments_resolve option in callback mode or the tinycomments_can_resolve option in embedded mode.
-
Click the ellipsis
icon on the first comment to open the menu.
-
Select Resolve conversation.
-
The Resolve Conversation dialog states how many comments will be resolved. Click Resolve to resolve the conversation, or Cancel to keep it open.
Result: The conversation is removed from the Comments sidebar, and its highlight is removed from the content. In embedded mode, the conversation is removed from the content. In callback mode, the tinycomments_resolve callback determines how the resolved conversation is stored.