+
+
{heading}
- {#if !editing}
-
- {/if}
+
-
- {#if editing}
-
- {:else if text !== undefined}
+
+
+ {#if text !== undefined}
{#each text.split(/\r?\n/) as line}
{#if line}
@@ -88,14 +59,6 @@
{/each}
{/if}
- {#if editing}
-
-
-
-
- {/if}
diff --git a/src/lib/components/TextSelectionToolbar.svelte b/src/lib/components/TextSelectionToolbar.svelte
index 92772fac7..192424455 100644
--- a/src/lib/components/TextSelectionToolbar.svelte
+++ b/src/lib/components/TextSelectionToolbar.svelte
@@ -25,11 +25,8 @@ TODO:
import { ImageIcon } from '$lib/icons/image';
import config from '$lib/data/config';
import {
- t,
s,
refs,
- modal,
- MODAL_NOTE,
selectedVerses,
theme,
themeColors,
@@ -40,6 +37,8 @@ TODO:
import { shareText } from '$lib/data/share';
import { play, seekToVerse } from '$lib/data/audio';
import { getBook, logShareContent } from '$lib/data/analytics';
+ import { goto } from '$app/navigation';
+ import { base } from '$app/paths';
const isAudioPlayable = config?.mainFeatures['text-select-play-audio'];
const isRepeatableAudio = config?.mainFeatures['audio-repeat-selection-button'];
const isTextOnImageEnabled = config?.mainFeatures['text-on-image'];
@@ -225,7 +224,7 @@ TODO:
{/if}
{#if isNotesEnabled}
-