You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To add a comment on a specific element through an API method, use the `addCommentOnElement()` method and pass in an object with the schema shown in the examples:
93
+
To add a comment on a specific element through an API method, use the `addCommentOnElement()` method and pass in an object with the schema shows in the example:
94
94
95
95
**Example 1: Add comment with targetElementId only:**
96
96
@@ -100,17 +100,17 @@ To add a comment on a specific element through an API method, use the `addCommen
100
100
```jsx
101
101
constelement= {
102
102
"targetElement": {
103
-
"elementId":"element_id",
103
+
"elementId":"element_id",// optional (pass elementId if you want to add comment on a specific element)
104
104
"targetText":"target_text", // optional (pass targetText if you want to add comment on a specific text)
105
105
"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.
106
106
"selectAllContent":true, // Set to `true` if you want to select all the text content of the target element.
"elementId":"element_id",// optional (pass elementId if you want to add comment on a specific element)
130
130
"targetText":"target_text", // optional (pass targetText if you want to add comment on a specific text)
131
131
"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.
132
132
"selectAllContent":true, // Set to `true` if you want to select all the text content of the target element.
@@ -155,7 +172,7 @@ Refer to the [Tiptap BubbleMenu documentation](https://tiptap.dev/docs/editor/ex
155
172
#### Step 5: Call `addComment` to add a comment
156
173
157
174
- Call this method to add a comment to selected text in the Tiptap editor. You can use this when the user clicks on the comment button in context menu or presses a keyboard shortcut.
158
-
- Params: `AddCommentRequest`. It has the following properties:
175
+
- Params: [`AddCommentRequest`](/api-reference/sdk/models/data-models#addcommentrequest). It has the following properties:
159
176
-`editor`: instance of the Tiptap editor.
160
177
-`editorId`: Id of the tiptap editor. Use this if you have multiple tiptap editors on the same page in your app. (optional)
161
178
-`context`: Add any custom metadata to the Comment Annotation. [Learn more](/async-collaboration/comments/customize-behavior#metadata). (optional)
@@ -198,7 +215,7 @@ Refer to the [Tiptap BubbleMenu documentation](https://tiptap.dev/docs/editor/ex
198
215
#### Step 6: Render Comments in Tiptap Editor
199
216
200
217
- Get the comment data from Velt SDK and render it in the Tiptap Editor.
201
-
- Params: `RenderCommentsRequest`. It has the following properties:
218
+
- Params: [`RenderCommentsRequest`](/api-reference/sdk/models/data-models#rendercommentsrequest). It has the following properties:
202
219
-`editor`: Instance of the Tiptap editor.
203
220
-`editorId`: Id of the tiptap editor. Use this if you have multiple tiptap editors on the same page in your app. (optional)
204
221
-`commentAnnotations`: Array of Comment Annotation objects.
Copy file name to clipboardExpand all lines: migration/environments.mdx
+1-58Lines changed: 1 addition & 58 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ Update environment variables, config files, and any hardcoded references.
37
37
38
38
Verify all features work with the production API key before going live.
39
39
40
-
**Regional keys (Enterprise only)**
40
+
#### **Regional keys (Enterprise only)**
41
41
42
42
Enterprise customers can create production API keys for specific regions to reduce latency and meet data residency requirements. See [Supported Regions](/security/supported-regions) for all available regions.
43
43
@@ -53,60 +53,3 @@ Create up to **10 API keys** for non-production environments. Use these for:
53
53
- Individual developer environments
54
54
- Testing and QA
55
55
56
-
## Data isolation
57
-
58
-
Each API key has completely separate:
59
-
- Data (comments, recordings, etc.)
60
-
- Feature configurations
61
-
- Webhooks
62
-
- Users and permissions
63
-
- UI customization
64
-
65
-
<Warning>
66
-
Settings and configurations do not automatically sync between environments. You must manually configure each environment.
67
-
</Warning>
68
-
69
-
## Configuration management
70
-
71
-
When setting up a new environment, manually replicate these settings:
72
-
73
-
1. Feature configurations
74
-
2. UI customization
75
-
3. Webhook endpoints
76
-
4. User permissions
77
-
5. Integration settings
78
-
79
-
**Naming convention**
80
-
81
-
Use clear names to identify each environment:
82
-
```
83
-
production-na, production-eu
84
-
staging-main, staging-feature-x
85
-
dev-john, dev-sarah
86
-
```
87
-
88
-
**Configuration tracking**
89
-
90
-
Document your settings per environment:
91
-
- Enabled features
92
-
- Webhook URLs
93
-
- UI customizations
94
-
- Permission rules
95
-
96
-
<Tip>
97
-
Test configuration changes in staging before applying to production.
98
-
</Tip>
99
-
100
-
## Managing API keys
101
-
102
-
Create and manage keys in the [Velt Console](https://console.velt.dev/):
103
-
104
-
1. Go to workspace settings
105
-
2. Open API Keys section
106
-
3. Click "Create New API Key"
107
-
4. Name your environment
108
-
5. Select environment type
109
-
110
-
<Warning>
111
-
Store API keys in environment variables or a secrets manager. Never commit them to version control.
0 commit comments