Skip to content

Commit aaebb57

Browse files
committed
docs: enhance Editor type definition in SuperDoc.js for improved clarity and structure
1 parent 2414d83 commit aaebb57

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

packages/superdoc/src/core/SuperDoc.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,17 @@ import { initSuperdocYdoc, initCollaborationComments, makeDocumentsCollaborative
5050
* @property {Object} [toolbar] Toolbar module configuration
5151
*/
5252

53-
/** @typedef {import('@harbour-enterprises/super-editor').Editor} Editor */
53+
/**
54+
* @typedef {Object} Editor
55+
* @property {Object} options - Editor options
56+
* @property {Function} commands - Editor commands
57+
* @property {Function} getHTML - Get HTML content
58+
* @property {Function} exportDocx - Export to DOCX
59+
* @property {Function} setDocumentMode - Set document mode
60+
* @property {Function} focus - Focus the editor
61+
* @property {Function} setHighContrastMode - Set high contrast mode
62+
* @property {Object} toolbar - Toolbar instance
63+
*/
5464

5565
/**
5666
* @typedef {string} DocumentMode

0 commit comments

Comments
 (0)