feat: add markdown toolbar

This commit is contained in:
Xyphyn committed 2023-08-04 13:45:42 -07:00
1 parent e75c674cb8
commit 3dcf173826
9 files changed
+192 -19

No files matched your search

@@ -9,6 +9,7 @@
import Markdown from '$lib/components/markdown/Markdown.svelte'
import { profile } from '$lib/auth.js'
import { toast } from '$lib/components/ui/toasts/toasts.js'
import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte'
export let postId: number
export let parentId: number | undefined = undefined
@@ -65,10 +66,9 @@
<Markdown source={value} />
</div>
{:else}
<TextArea
<MarkdownEditor
rows={4}
placeholder={locked ? 'This post is locked.' : 'What are you thinking?'}
class="!bg-slate-100 dark:!bg-zinc-900"
bind:value
disabled={locked}
/>