We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cd0913 commit c2ac00cCopy full SHA for c2ac00c
app/src/editor/index.ts
@@ -21,7 +21,7 @@ export class Editor extends Model {
21
rootId: string,
22
mode?: TEditorMode,
23
action?: TProtyleAction[],
24
- afterInitProtyle: (editor: Protyle) => void,
+ afterInitProtyle?: (editor: Protyle) => void,
25
}) {
26
super({
27
app: options.app,
@@ -40,7 +40,7 @@ export class Editor extends Model {
40
action?: TProtyleAction[]
41
42
43
44
45
this.editor = new Protyle(this.app, this.element, {
46
action: options.action || [],
0 commit comments