Daniel 2025-04-07 20:47:48 +08:00
parent 0cd0913484
commit c2ac00c700
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -21,7 +21,7 @@ export class Editor extends Model {
rootId: string,
mode?: TEditorMode,
action?: TProtyleAction[],
afterInitProtyle: (editor: Protyle) => void,
afterInitProtyle?: (editor: Protyle) => void,
}) {
super({
app: options.app,
@ -40,7 +40,7 @@ export class Editor extends Model {
action?: TProtyleAction[]
rootId: string,
mode?: TEditorMode,
afterInitProtyle: (editor: Protyle) => void,
afterInitProtyle?: (editor: Protyle) => void,
}) {
this.editor = new Protyle(this.app, this.element, {
action: options.action || [],