mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +08:00
chore(canvas): bring back more options
This commit is contained in:
parent
ddbd268a66
commit
5b98277f3c
@ -183,6 +183,23 @@ export default class ExcalidrawTypeWidget extends TypeWidget {
|
|||||||
theme: this.themeStyle,
|
theme: this.themeStyle,
|
||||||
onChange: () => this.onChangeHandler(),
|
onChange: () => this.onChangeHandler(),
|
||||||
viewModeEnabled: options.is("databaseReadonly"),
|
viewModeEnabled: options.is("databaseReadonly"),
|
||||||
|
zenModeEnabled: false,
|
||||||
|
gridModeEnabled: false,
|
||||||
|
isCollaborating: false,
|
||||||
|
detectScroll: false,
|
||||||
|
handleKeyboardGlobally: false,
|
||||||
|
autoFocus: false,
|
||||||
|
UIOptions: {
|
||||||
|
canvasActions: {
|
||||||
|
saveToActiveFile: false,
|
||||||
|
export: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLibraryChange: () => {
|
||||||
|
this.libraryChanged = true;
|
||||||
|
|
||||||
|
this.saveData();
|
||||||
|
},
|
||||||
});
|
});
|
||||||
this.canvasInstance.renderCanvas(renderElement);
|
this.canvasInstance.renderCanvas(renderElement);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user