diff --git a/src/components/ExtendedTextarea.svelte b/src/components/ExtendedTextarea.svelte index 35eca02..3806248 100644 --- a/src/components/ExtendedTextarea.svelte +++ b/src/components/ExtendedTextarea.svelte @@ -56,8 +56,8 @@ /* eslint-enable prefer-const */ let preview: boolean = $state(false); - let selectionStart = $state(0); - let selectionEnd = $state(0); + let selectionStart = $state(body.length); + let selectionEnd = $state(body.length); let draggingOver = $state(false); let dragEnterUnlistenFn: UnlistenFn | undefined = undefined; let dragLeaveUnlistenFn: UnlistenFn | undefined = undefined;