Skip to content

Build your personal knowledge base with Trilium Notes

chore(canvas): bring back more options

Elian Doran5b98277f3cc2
diff --git a/apps/client/src/widgets/type_widgets/canvas.ts b/apps/client/src/widgets/type_widgets/canvas.ts
index 58b7cfe017..0927bb1aa5 100644
--- a/apps/client/src/widgets/type_widgets/canvas.ts
+++ b/apps/client/src/widgets/type_widgets/canvas.ts
@@ -183,6 +183,23 @@ export default class ExcalidrawTypeWidget extends TypeWidget {
theme: this.themeStyle,
onChange: () => this.onChangeHandler(),
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);
}