Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions async-collaboration/comments/customize-behavior.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const element = {
targetElement: {
elementId: "element_id", // optional (pass elementId if you want to add comment on a specific element)
targetText: "target_text", // optional (pass targetText if you want to add comment on a specific text)
occurrence: 1, // optional (default: 1) This is relevant for text comment. By default, we will attach comment to the first occurence of the target text in your document. You can change this to attach your comment on a more specific text.
occurrence: 1, // optional (default: 1) This is relevant for text comment. By default, we will attach comment to the first occurrence of the target text in your document. You can change this to attach your comment on a more specific text.
selectAllContent: true, // Set to `true` if you want to select all the text content of the target element.
},
commentData: [
Expand Down Expand Up @@ -135,7 +135,7 @@ const element = {
targetElement: {
elementId: "element_id", // optional (pass elementId if you want to add comment on a specific element)
targetText: "target_text", // optional (pass targetText if you want to add comment on a specific text)
occurrence: 1, // optional (default: 1) This is relevant for text comment. By default, we will attach comment to the first occurence of the target text in your document. You can change this to attach your comment on a more specific text.
occurrence: 1, // optional (default: 1) This is relevant for text comment. By default, we will attach comment to the first occurrence of the target text in your document. You can change this to attach your comment on a more specific text.
selectAllContent: true, // Set to `true` if you want to select all the text content of the target element.
},
commentData: [
Expand Down