feat: fix signature editor init and expand README
Build and Push Multi-Platform Images / build-and-push (push) Successful in 18s

- Pass initialContent prop to WysiwygEditor instead of imperative setContent
  to ensure mail signature loads correctly on mount
- Rewrite README to reflect full project scope (scanner inbox, email import,
  postprocessing rules, label printing, OIDC auth)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-21 15:48:23 +02:00
parent 2df3af719b
commit f482304061
3 changed files with 82 additions and 11 deletions
@@ -26,6 +26,7 @@ export interface WysiwygEditorHandle {
interface WysiwygEditorProps {
minHeight?: number;
initialContent?: string;
}
function ToolBtn({
@@ -69,14 +70,14 @@ const HEADING_OPTIONS = [
];
export const WysiwygEditor = forwardRef<WysiwygEditorHandle, WysiwygEditorProps>(
({ minHeight = 200 }, ref) => {
({ minHeight = 200, initialContent }, ref) => {
const editor = useEditor({
extensions: [
StarterKit,
Underline,
TextAlign.configure({ types: ['heading', 'paragraph'] }),
],
content: '',
content: initialContent ?? '',
});
useImperativeHandle(