Skip to content

Commit f983b6a

Browse files
authored
fix: jsonOverride documentation (#821)
1 parent d6ee757 commit f983b6a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/super-editor/src/core/Editor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ import { createDocFromMarkdown, createDocFromHTML } from '@core/helpers/index.js
130130
* @property {Function} [handleImageUpload] - Handler for image uploads
131131
* @property {Object} [telemetry] - Telemetry configuration
132132
* @property {boolean} [suppressDefaultDocxStyles] - Prevent default styles from being applied in docx mode
133-
* @property {boolean} [jsonOverride] - Whether to override content with provided json
133+
* @property {Object} [jsonOverride] - Provided JSON to override content with
134134
* @property {string} [html] - HTML content to initialize the editor with
135135
* @property {string} [markdown] - Markdown content to initialize the editor with
136136
*/
@@ -213,7 +213,7 @@ export class Editor extends EventEmitter {
213213
isHeaderOrFooter: false,
214214
lastSelection: null,
215215
suppressDefaultDocxStyles: false,
216-
jsonOverride: false,
216+
jsonOverride: null,
217217
onBeforeCreate: () => null,
218218
onCreate: () => null,
219219
onUpdate: () => null,

packages/superdoc/src/core/SuperDoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ import { initSuperdocYdoc, initCollaborationComments, makeDocumentsCollaborative
105105
* @property {User} [lockedBy] The user who locked the SuperDoc
106106
* @property {boolean} [rulers] Whether to show the ruler in the editor
107107
* @property {boolean} [suppressDefaultDocxStyles] Whether to suppress default styles in docx mode
108-
* @property {boolean} [jsonOverride] Whether to override content with provided JSON
108+
* @property {Object} [jsonOverride] Provided JSON to override content with
109109
* @property {boolean} [disableContextMenu] Whether to disable slash / right-click custom context menu
110110
* @property {string} [html] HTML content to initialize the editor with
111111
* @property {string} [markdown] Markdown content to initialize the editor with

0 commit comments

Comments
 (0)