|
|
|
|
@ -70,6 +70,13 @@
@@ -70,6 +70,13 @@
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function oncontextmenu(evt){ |
|
|
|
|
evt.preventDefault(); |
|
|
|
|
evt.stopPropagation(); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function onmousedown(evt){ |
|
|
|
|
evt.preventDefault(); |
|
|
|
|
start = evt.timeStamp; |
|
|
|
|
@ -108,7 +115,9 @@
@@ -108,7 +115,9 @@
|
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
|
|
|
|
|
<div class="markdown {editing?'editing':''}"> |
|
|
|
|
{#if editing} |
|
|
|
|
<textarea bind:value={editValue.source} onkeyup={typed} autofocus={!simple}></textarea> |
|
|
|
|
{/if} |
|
|
|
|
<svelte:element this={type} {onmousedown} {onmouseup} {ontouchstart} {ontouchend} class={{editable}} title={t('long_click_to_edit')} >{@html editValue.rendered}</svelte:element> |
|
|
|
|
<svelte:element this={type} {onmousedown} {onmouseup} {ontouchstart} {ontouchend} {oncontextmenu} class={{editable}} title={t('long_click_to_edit')} >{@html editValue.rendered}</svelte:element> |
|
|
|
|
</div> |