@@ -49,7 +49,8 @@ const superdoc = new SuperDoc({
4949| ` selector ` | ` string\|Element ` | CSS selector or DOM element where SuperDoc will be rendered | ✓ | - |
5050| ` documents ` | ` array ` | Array of document objects to load | ✓ | - |
5151| ` superdocId ` | ` string ` | Unique identifier for this SuperDoc instance | | Random UUID |
52- | ` documentMode ` | ` string ` | Initial mode: 'viewing' or 'editing' | | 'viewing' |
52+ | ` documentMode ` | ` string ` | Document mode: 'viewing', 'suggesting', or 'editing' | | 'editing' |
53+ | ` role ` | ` string ` | User role: 'editor', 'suggester', or 'viewer' | | 'editor' |
5354| ` user ` | ` object ` | Current user information | | {} |
5455| ` toolbar ` | ` string\|Element ` | DOM element to render toolbar | | Internal toolbar |
5556| ` modules ` | ` object ` | Additional modules configuration | | {} |
@@ -91,7 +92,7 @@ modules: {
9192| Method | Parameters | Return | Description |
9293| :------------------------------------ | :-------------------------------- | :-------------- | :---------------------------------------------------------- |
9394| ` export() ` | - | ` Promise<Void> ` | Exports the SuperDocs and triggers download |
94- | ` setDocumentMode(mode) ` | mode: 'viewing' or 'editing' | - | Switches between view and edit modes |
95+ | ` setDocumentMode(mode) ` | mode: 'viewing', 'suggesting', or 'editing' | - | Switches between view, suggest, and edit modes |
9596| ` on(event, callback) ` | event: string, callback: function | - | Registers an event listener |
9697| ` off(event, callback) ` | event: string, callback: function | - | Removes an event listener |
9798| ` getHTML() ` | - | - | Get a list of HTML strings (one per DOCX document) |
0 commit comments