This commit is contained in:
Vanessa 2022-09-01 12:21:50 +08:00
parent b0de05da78
commit d4746d67e6
2 changed files with 3 additions and 3 deletions

View file

@ -28,14 +28,14 @@ export class Editor extends Model {
this.initProtyle(options);
}
private initProtyle(options: {
private initProtyle(options: {
blockId: string,
action?: string[]
mode?: TEditorMode,
scrollAttr?: IScrollAttr
}) {
this.editor = new Protyle(this.element, {
action: options.action,
action: options.action || [],
blockId: options.blockId,
mode: options.mode,
render: {

View file

@ -121,7 +121,7 @@ export class Options {
filename: (name: string) => name.replace(/[\\/:*?"'<>|]/g, ""),
linkToImgUrl: "",
withCredentials: false,
},
}
};
constructor(options: IOptions) {