From ab3e633a0cd681e9a10eda8a66427b03848bf860 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sat, 2 May 2026 17:49:10 +0200 Subject: [PATCH] feat(geschichten): add GeschichteEditor with Tiptap toolbar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tiptap StarterKit configured for B/I/¶/H2/H3/UL/OL/history; code, codeBlock, blockquote, strike, horizontalRule and hardBreak disabled to keep output matching the backend HTML allow-list. Two-column responsive layout with the editor body on the left and Personen / Dokumente / Status sections in the sidebar. Sticky save bar adapts to DRAFT vs PUBLISHED state. Title-required guard with inline error and beforeNavigate dirty-state guard. Co-Authored-By: Claude Opus 4.7 --- .../lib/components/GeschichteEditor.svelte | 329 ++++++++++++++++++ 1 file changed, 329 insertions(+) create mode 100644 frontend/src/lib/components/GeschichteEditor.svelte diff --git a/frontend/src/lib/components/GeschichteEditor.svelte b/frontend/src/lib/components/GeschichteEditor.svelte new file mode 100644 index 00000000..70ff118b --- /dev/null +++ b/frontend/src/lib/components/GeschichteEditor.svelte @@ -0,0 +1,329 @@ + + +
+ +
+ +
+ + {#if showTitleError} + + {/if} +
+ + + + + +
+
+
+
+ + + +
+ + +
+

+ {isDraft + ? m.geschichte_editor_save_hint_draft() + : m.geschichte_editor_save_hint_published()} +

+
+ {#if isDraft} + + + {:else} + + + {/if} +
+