packed buttons in markdown editor in another span
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -122,8 +122,10 @@
|
|||||||
{#if editing}
|
{#if editing}
|
||||||
<div class="boundary">
|
<div class="boundary">
|
||||||
<textarea bind:value={editValue.source} onkeyup={typed} autofocus={!simple}></textarea>
|
<textarea bind:value={editValue.source} onkeyup={typed} autofocus={!simple}></textarea>
|
||||||
<button class="cancel" onclick={e => editing = false}>{t('cancel')}</button>
|
<span class="buttons">
|
||||||
<button class="save" onclick={doSave}>{t('save')}</button>
|
<button class="cancel" onclick={e => editing = false}>{t('cancel')}</button>
|
||||||
|
<button class="save" onclick={doSave}>{t('save')}</button>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<svelte:element this={type} {onclick} {oncontextmenu} class={{editable}} title={t('long_click_to_edit')} >{@html target(editValue.rendered)}</svelte:element>
|
<svelte:element this={type} {onclick} {oncontextmenu} class={{editable}} title={t('long_click_to_edit')} >{@html target(editValue.rendered)}</svelte:element>
|
||||||
|
|||||||
Reference in New Issue
Block a user