Skip to content

Commit

Permalink
Update Config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
neSpecc committed Aug 30, 2024
1 parent fb12400 commit 3c4bb06
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/sdk/src/entities/Config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { EditorConfig } from '@editorjs/editorjs';
import type { EditorJSModel } from '@editorjs/model';

/**
* Editor.js configuration
Expand All @@ -8,4 +9,12 @@ export interface CoreConfig extends EditorConfig {
* Element to insert the editor into. By default #editorjs
*/
holder?: HTMLElement;

/**
* DEV MODE ONLY
*
* Allows to subscribe to model updates. Used in playground for visualizing model changes
* @param model - EditorJSModel instance
*/
onModelUpdate?: (model: EditorJSModel) => void;
}

0 comments on commit 3c4bb06

Please sign in to comment.