diff --git a/async-collaboration/comments/customize-behavior.mdx b/async-collaboration/comments/customize-behavior.mdx index 7aada384..fafededd 100644 --- a/async-collaboration/comments/customize-behavior.mdx +++ b/async-collaboration/comments/customize-behavior.mdx @@ -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: [ @@ -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: [