courrier multi account restore compose
This commit is contained in:
parent
7d331cf87c
commit
6fe809a74b
@ -79,13 +79,16 @@ export default function EmailPanel({
|
|||||||
|
|
||||||
console.log('EmailPanel: Raw email:', email);
|
console.log('EmailPanel: Raw email:', email);
|
||||||
|
|
||||||
// Format the email content
|
// Format the email content while preserving the original structure
|
||||||
const formattedContent = formatEmailContent(email);
|
const formattedContent = formatEmailContent(email);
|
||||||
console.log('EmailPanel: Formatted content:', formattedContent);
|
console.log('EmailPanel: Formatted content:', formattedContent);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...email,
|
...email,
|
||||||
content: formattedContent
|
content: {
|
||||||
|
html: formattedContent,
|
||||||
|
text: email.content?.text || email.text || ''
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}, [email]);
|
}, [email]);
|
||||||
|
|
||||||
|
|||||||
@ -139,8 +139,8 @@ export default function EmailPreview({ email, loading = false, onReply }: EmailP
|
|||||||
|
|
||||||
// Sanitize the content for display
|
// Sanitize the content for display
|
||||||
const sanitizedContent = DOMPurify.sanitize(content, {
|
const sanitizedContent = DOMPurify.sanitize(content, {
|
||||||
ADD_TAGS: ['style'],
|
ADD_TAGS: ['style', 'table', 'thead', 'tbody', 'tr', 'td', 'th'],
|
||||||
ADD_ATTR: ['class', 'style', 'dir'],
|
ADD_ATTR: ['class', 'style', 'dir', 'colspan', 'rowspan'],
|
||||||
ALLOW_DATA_ATTR: false
|
ALLOW_DATA_ATTR: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user