mail page fix
This commit is contained in:
parent
40347f407a
commit
93383b61be
@ -203,9 +203,8 @@ export default function ComposeEmail({
|
||||
<div
|
||||
ref={composeBodyRef}
|
||||
contentEditable
|
||||
className="prose max-w-none min-h-[200px] p-4 focus:outline-none border rounded-md"
|
||||
className="prose max-w-none min-h-[200px] p-4 focus:outline-none border rounded-md bg-white"
|
||||
suppressContentEditableWarning
|
||||
dangerouslySetInnerHTML={{ __html: composeBody }}
|
||||
onInput={(e: React.FormEvent<HTMLDivElement>) => {
|
||||
const content = (e.target as HTMLDivElement).innerHTML;
|
||||
setComposeBody(content);
|
||||
@ -214,7 +213,15 @@ export default function ComposeEmail({
|
||||
const content = e.currentTarget.innerHTML;
|
||||
setComposeBody(content);
|
||||
}}
|
||||
/>
|
||||
style={{
|
||||
outline: 'none',
|
||||
cursor: 'text',
|
||||
whiteSpace: 'pre-wrap',
|
||||
wordBreak: 'break-word'
|
||||
}}
|
||||
>
|
||||
{composeBody}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user