courrier refactor rebuild 2
This commit is contained in:
parent
80d631eee0
commit
819955d24b
@ -360,12 +360,12 @@ export default function ComposeEmail(props: ComposeEmailAllProps) {
|
|||||||
{/* Message Body */}
|
{/* Message Body */}
|
||||||
<div className="flex-1 min-h-[200px] flex flex-col overflow-hidden">
|
<div className="flex-1 min-h-[200px] flex flex-col overflow-hidden">
|
||||||
<Label htmlFor="message" className="flex-none block text-sm font-medium text-gray-700 mb-2">Message</Label>
|
<Label htmlFor="message" className="flex-none block text-sm font-medium text-gray-700 mb-2">Message</Label>
|
||||||
<div className="flex-1 border border-gray-300 rounded-md overflow-hidden">
|
<div className="flex-1 border border-gray-300 rounded-md overflow-hidden bg-white">
|
||||||
<RichEmailEditor
|
<RichEmailEditor
|
||||||
initialContent={emailContent}
|
initialContent={emailContent}
|
||||||
onChange={setEmailContent}
|
onChange={setEmailContent}
|
||||||
minHeight="200px"
|
minHeight="200px"
|
||||||
maxHeight="none"
|
maxHeight="calc(100vh - 460px)"
|
||||||
preserveFormatting={true}
|
preserveFormatting={true}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -739,15 +739,19 @@ function LegacyAdapter({
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Message content */}
|
{/* Message Body */}
|
||||||
<div className="flex-1 p-4 mt-2 border rounded-md relative min-h-[200px] bg-white">
|
<div className="flex-1 min-h-[200px] flex flex-col overflow-hidden">
|
||||||
<div
|
<Label htmlFor="message" className="flex-none block text-sm font-medium text-gray-700 mb-2">Message</Label>
|
||||||
className="outline-none w-full h-full"
|
<div className="flex-1 border border-gray-300 rounded-md overflow-hidden bg-white">
|
||||||
contentEditable
|
<RichEmailEditor
|
||||||
dangerouslySetInnerHTML={{ __html: composeBody }}
|
initialContent={composeBody}
|
||||||
onInput={(e) => setComposeBody(e.currentTarget.innerHTML)}
|
onChange={setComposeBody}
|
||||||
|
minHeight="200px"
|
||||||
|
maxHeight="calc(100vh - 460px)"
|
||||||
|
preserveFormatting={true}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* Attachments */}
|
{/* Attachments */}
|
||||||
{attachments.length > 0 && (
|
{attachments.length > 0 && (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user