courrier clean 2$
This commit is contained in:
parent
1add54f457
commit
96cf29b98b
@ -411,24 +411,19 @@ export default function ComposeEmail(props: ComposeEmailAllProps) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Email Body Editor */}
|
{/* Email Body Editor - using same approach as Input components */}
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<label htmlFor="body" className="text-sm font-medium">Message</label>
|
<label htmlFor="body" className="text-sm font-medium">Message</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Email editor - uses auto direction to detect content language */}
|
|
||||||
<div className="border rounded-md overflow-hidden">
|
<div className="border rounded-md overflow-hidden">
|
||||||
<div
|
<textarea
|
||||||
ref={editorRef}
|
value={emailContent}
|
||||||
contentEditable={!sending}
|
onChange={(e) => setEmailContent(e.target.value)}
|
||||||
className="w-full p-4 min-h-[300px] focus:outline-none"
|
className="w-full p-4 min-h-[300px] focus:outline-none resize-none"
|
||||||
onInput={handleEditorInput}
|
placeholder="Write your message here..."
|
||||||
dangerouslySetInnerHTML={{ __html: emailContent }}
|
disabled={sending}
|
||||||
dir="auto"
|
|
||||||
style={{
|
|
||||||
textAlign: 'initial',
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user