diff --git a/frontend/src/lib/components/Tiptap.svelte b/frontend/src/lib/components/Tiptap.svelte index a0a7b10..21d5ffa 100644 --- a/frontend/src/lib/components/Tiptap.svelte +++ b/frontend/src/lib/components/Tiptap.svelte @@ -31,7 +31,10 @@ extensions: [ StarterKit, Underline, - Image.configure({ block: true }), + Image.configure({ + inline: true, + allowBase64: true, + }), Dropcursor, CodeBlock.configure({ exitOnTripleEnter: true, @@ -86,7 +89,7 @@ }), ], // place the cursor in the editor after initialization - autofocus: true, + autofocus: false, // make the text editable (but that’s the default anyway) editable: true, // disable the loading of the default CSS (which is not much anyway) diff --git a/frontend/src/routes/home/+page.svelte b/frontend/src/routes/home/+page.svelte index 6232ded..da11afa 100644 --- a/frontend/src/routes/home/+page.svelte +++ b/frontend/src/routes/home/+page.svelte @@ -1,6 +1,7 @@