mail page fix design
This commit is contained in:
parent
2040db075c
commit
9927b19343
@ -53,8 +53,7 @@ export default function ComposeEmail({
|
||||
|
||||
const handleInput = (e: React.FormEvent<HTMLDivElement>) => {
|
||||
if (composeBodyRef.current) {
|
||||
const content = composeBodyRef.current.textContent || '';
|
||||
setComposeBody(content);
|
||||
setComposeBody(composeBodyRef.current.innerHTML);
|
||||
}
|
||||
};
|
||||
|
||||
@ -224,10 +223,9 @@ 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