Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/super-editor/src/core/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ import { createDocFromMarkdown, createDocFromHTML } from '@core/helpers/index.js
* @property {Function} [handleImageUpload] - Handler for image uploads
* @property {Object} [telemetry] - Telemetry configuration
* @property {boolean} [suppressDefaultDocxStyles] - Prevent default styles from being applied in docx mode
* @property {boolean} [jsonOverride] - Whether to override content with provided json
* @property {Object} [jsonOverride] - Provided JSON to override content with
* @property {string} [html] - HTML content to initialize the editor with
* @property {string} [markdown] - Markdown content to initialize the editor with
*/
Expand Down Expand Up @@ -213,7 +213,7 @@ export class Editor extends EventEmitter {
isHeaderOrFooter: false,
lastSelection: null,
suppressDefaultDocxStyles: false,
jsonOverride: false,
jsonOverride: null,
onBeforeCreate: () => null,
onCreate: () => null,
onUpdate: () => null,
Expand Down
2 changes: 1 addition & 1 deletion packages/superdoc/src/core/SuperDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
* @property {User} [lockedBy] The user who locked the SuperDoc
* @property {boolean} [rulers] Whether to show the ruler in the editor
* @property {boolean} [suppressDefaultDocxStyles] Whether to suppress default styles in docx mode
* @property {boolean} [jsonOverride] Whether to override content with provided JSON
* @property {Object} [jsonOverride] Provided JSON to override content with
* @property {boolean} [disableContextMenu] Whether to disable slash / right-click custom context menu
* @property {string} [html] HTML content to initialize the editor with
* @property {string} [markdown] Markdown content to initialize the editor with
Expand Down Expand Up @@ -405,7 +405,7 @@
/**
* Initialize telemetry service.
*/
#initTelemetry() {

Check warning on line 408 in packages/superdoc/src/core/SuperDoc.js

View workflow job for this annotation

GitHub Actions / Lint & Format Check

'#initTelemetry' is defined but never used
this.telemetry = new Telemetry({
enabled: this.config.telemetry?.enabled ?? true,
licenseKey: this.config.telemetry?.licenseKey,
Expand Down