feat: add removal templates
This commit is contained in:
1 parent
147349d0c2
commit
9fd32aa7dd
9 files changed
+97
-10
No files matched your search
@@ -24,6 +24,8 @@
|
||||
export let previewButton: boolean = false
|
||||
export let disabled: boolean = false
|
||||
|
||||
export let beforePreview: (input: string) => string = (input) => input
|
||||
|
||||
const dispatcher = createEventDispatcher<{ confirm: string }>()
|
||||
|
||||
let textArea: HTMLTextAreaElement
|
||||
@@ -119,7 +121,7 @@ overflow-hidden focus-within:border-black focus-within:dark:border-white transit
|
||||
>
|
||||
{#if previewing}
|
||||
<div class="px-3 py-2.5 h-32 overflow-auto text-sm">
|
||||
<Markdown source={value} />
|
||||
<Markdown source={beforePreview(value)} />
|
||||
</div>
|
||||
{:else}
|
||||
<!--Toolbar-->
|
||||
|
||||
Reference in new issue
Block a user