mail page fix design
This commit is contained in:
parent
dbe7707a90
commit
2040db075c
@ -53,7 +53,8 @@ export default function ComposeEmail({
|
||||
|
||||
const handleInput = (e: React.FormEvent<HTMLDivElement>) => {
|
||||
if (composeBodyRef.current) {
|
||||
setComposeBody(composeBodyRef.current.innerHTML);
|
||||
const content = composeBodyRef.current.textContent || '';
|
||||
setComposeBody(content);
|
||||
}
|
||||
};
|
||||
|
||||
@ -223,9 +224,10 @@ export default function ComposeEmail({
|
||||
unicodeBidi: 'bidi-override'
|
||||
}}
|
||||
dir="ltr"
|
||||
dangerouslySetInnerHTML={{ __html: composeBody }}
|
||||
onInput={handleInput}
|
||||
/>
|
||||
>
|
||||
{composeBody}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user