implemented opening of external links in new tab

This commit is contained in:
2025-09-08 21:39:15 +02:00
parent 6e3fa67ed1
commit 8107157f6a
6 changed files with 38 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
<script>
import { activeField } from './field_sync.svelte.js';
import { api } from '../urls.svelte.js';
import { api, target } from '../urls.svelte.js';
import { t } from '../translations.svelte.js';
let {
@@ -119,5 +119,5 @@
{#if editing}
<textarea bind:value={editValue.source} onkeyup={typed} autofocus={!simple}></textarea>
{/if}
<svelte:element this={type} {onmousedown} {onmouseup} {ontouchstart} {ontouchend} {oncontextmenu} 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 target(editValue.rendered)}</svelte:element>
</div>