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
@@ -71,7 +71,7 @@ The TinyMCE integration renders comment highlights as view-only overlay elements
71
71
72
72
`tinymce` is a peer dependency and must be provided by your TinyMCE app. Import the self-hosted TinyMCE assets used by your editor so `@tinymce/tinymce-react` and the Velt plugin use the same TinyMCE instance.
73
73
74
-
#### Step 3: Create a TinyMCE editor component with Velt Comments
74
+
#### Step 3: Configure the TinyMCE editor with the Velt Comments plugin
75
75
76
76
Add `VeltCommentsPlugin` to the TinyMCE `plugins` list and set `velt_comments_editor_id` in the editor init options. Capture the TinyMCE editor instance from `onInit` or the `init` event, then render Velt comment annotations into the editor with `renderComments`.
For a vanilla TinyMCE app, initialize Velt with `@veltdev/client`, add the Velt comments web component to the page, and subscribe to annotations through the Velt comment element.
When using multiple editors on the same page, provide a unique `editorId` to TinyMCE's `velt_comments_editor_id` init option, `addComment`, and `renderComments`.
@@ -485,122 +604,3 @@ Resolves Velt comment annotations back to TinyMCE DOM ranges and renders stable
485
604
```
486
605
</Tab>
487
606
</Tabs>
488
-
489
-
## Using Without React
490
-
491
-
For a vanilla TinyMCE app, initialize Velt with `@veltdev/client`, add the Velt comments web component to the page, and subscribe to annotations through the Velt comment element.
When using multiple editors on the same page, provide a unique `editorId` to TinyMCE's `velt_comments_editor_id` init option, `addComment`, and `renderComments`.
0 commit comments