mirror of
https://github.com/FranP-code/Reflecto.git
synced 2025-10-13 00:43:31 +00:00
feat: set Tldraw editor to readonly on mount in SpacesGrid component
This commit is contained in:
@@ -154,6 +154,9 @@ export function SpacesGrid() {
|
||||
}}
|
||||
className="min-h-52"
|
||||
hideUi
|
||||
onMount={(editor) => {
|
||||
editor.updateInstanceState({ isReadonly: true });
|
||||
}}
|
||||
snapshot={JSON.parse(space.snapshotText).document}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user