mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
This commit is contained in:
parent
b0de05da78
commit
d4746d67e6
2 changed files with 3 additions and 3 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ export class Options {
|
|||
filename: (name: string) => name.replace(/[\\/:*?"'<>|]/g, ""),
|
||||
linkToImgUrl: "",
|
||||
withCredentials: false,
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
constructor(options: IOptions) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue