{#if uploadingImage && images}
Upload image
Upload
{/if}
{#if label || $$slots.label}
{#if label} {label} {:else if $$slots.label}
{/if}
{/if}
{#if previewing}
{:else}
wrapSelection('**', '**')} title="Bold" size="square-md" >
B
wrapSelection('*', '*')} title="Italic" size="square-md" >
I
wrapSelection('[label](url)', '')} title="Link" size="square-md" >
wrapSelection('\n# ', '')} title="Header" size="square-md" >
H
wrapSelection('~~', '~~')} title="Strikethrough" size="square-md" >
S
wrapSelection('\n> ', '')} title="Quote" size="square-md" >
"
wrapSelection('\n- ', '')} title="List" size="square-md" >
wrapSelection('`', '`')} title="Code" size="square-md" >
wrapSelection('::: spoiler
\n', '\n:::')} title="Spoiler" size="square-md" >
wrapSelection('~', '~')} title="Subscript" size="square-md" >
X
1
wrapSelection('^', '^')} title="Superscript" size="square-md" >
X
1
{#if images}
(uploadingImage = !uploadingImage)} title="Image" size="square-md" >
{/if}
{ if (disabled) return if (e.ctrlKey || e.metaKey) { // @ts-ignore let shortcut = shortcuts[e.code] if (shortcut) { e.preventDefault() shortcut?.() } } }} {rows} {...$$restProps} /> {/if} {#if $$slots.default || previewButton}
{#if previewButton}
{/if}
{/if}