diff --git a/components/email/EmailPreview.tsx b/components/email/EmailPreview.tsx index bf4d8c0e..dcd25f86 100644 --- a/components/email/EmailPreview.tsx +++ b/components/email/EmailPreview.tsx @@ -1,6 +1,6 @@ 'use client'; -import { useState } from 'react'; +import { useState, useRef } from 'react'; import { Loader2, Paperclip, User } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Badge } from '@/components/ui/badge'; @@ -58,6 +58,9 @@ interface EmailPreviewProps { } export default function EmailPreview({ email, loading = false, onReply }: EmailPreviewProps) { + // Add editorRef to match ComposeEmail exactly + const editorRef = useRef(null); + // Format the date const formatDate = (date: Date | string) => { if (!date) return ''; @@ -199,17 +202,18 @@ export default function EmailPreview({ email, loading = false, onReply }: EmailP )} - {/* Email content - EXACT match with ComposeEmail */} + {/* Email content - EXACT copy from ComposeEmail */} -
- {/* Message content - copied exactly from ComposeEmail for reply/forward */} +