diff --git a/src/components/ExtendedTextarea.svelte b/src/components/ExtendedTextarea.svelte index 8a8c97c..7dde312 100644 --- a/src/components/ExtendedTextarea.svelte +++ b/src/components/ExtendedTextarea.svelte @@ -57,8 +57,8 @@ const unlistenArray: UnlistenFn[] = []; 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 | void; let dragLeaveUnlistenFn: UnlistenFn | void;