implemented display of wiki pages
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -20,9 +20,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
async function onSet(newVal){
|
||||
console.log('TODO: implement patch',newVal);
|
||||
return true;
|
||||
}
|
||||
|
||||
onMount(loadPage);
|
||||
</script>
|
||||
<h2>{id}</h2>
|
||||
{#if error}
|
||||
<span class="error">{error}</span>
|
||||
{/if}
|
||||
{#if page}
|
||||
<Editor editable={true} value={page.content} {onSet}></Editor>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user