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"
|
className="min-h-52"
|
||||||
hideUi
|
hideUi
|
||||||
|
onMount={(editor) => {
|
||||||
|
editor.updateInstanceState({ isReadonly: true });
|
||||||
|
}}
|
||||||
snapshot={JSON.parse(space.snapshotText).document}
|
snapshot={JSON.parse(space.snapshotText).document}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user