pasar worldY a Editor
This commit is contained in:
parent
906e1a2d32
commit
166308aa06
2 changed files with 3 additions and 1 deletions
|
@ -22,8 +22,10 @@
|
|||
import MenuBar from "./MenuBar.svelte";
|
||||
import { placeholderPlugin } from "./upload";
|
||||
import { baseKeymap } from "./keymap";
|
||||
import type { WorldY } from "../lib/doc";
|
||||
|
||||
export let doc: XmlFragment;
|
||||
export let worldY: WorldY;
|
||||
|
||||
let wrapperEl: HTMLElement;
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
<a class="no-color" href={routes.ChooseWorld}>🠔 Elegir otro mundo</a>
|
||||
{#await docPromise then doc}
|
||||
<Editor doc={doc.doc} />
|
||||
<Editor doc={doc.doc} worldY={doc.worldY} />
|
||||
{:catch error}
|
||||
{error}
|
||||
<a href={routes.ChooseWorld}>Volver al inicio</a>
|
||||
|
|
Loading…
Reference in a new issue