refactor(canvas): use better approach to disabling export

This commit is contained in:
Elian Doran 2025-03-14 21:59:02 +02:00
parent 3c146cdb20
commit abddde910c
No known key found for this signature in database

View File

@ -26,11 +26,6 @@ const TPL = `
.excalidraw-wrapper {
height: 100%;
}
.excalidraw button[data-testid="json-export-button"] {
display: none !important;
}
:root[dir="ltr"]
.excalidraw
@ -44,10 +39,6 @@ const TPL = `
display: none !important;
}
button[data-testid='save-button'], button[data-testid='json-export-button'] {
display: none !important; /* these exports don't work, user should use import/export dialog */
}
.library-button {
display: none !important; /* library won't work without extra support which isn't currently implemented */
}
@ -558,7 +549,8 @@ export default class ExcalidrawTypeWidget extends TypeWidget {
onLinkOpen,
UIOptions: {
canvasActions: {
saveToActiveFile: false
saveToActiveFile: false,
export: false
}
}
})