Utilizing Javascript alongside a duo of devexpress asp.net controls to dynamically duplicate the contents of an ASPxMemo (multiline textfield) and assign those contents as the body of an email.
The copying and pasting is functioning correctly for the most part, however, I have observed that if my ASPxMemo contains multiple lines, it is merged into one line when pasted in the email body. For instance, if the content in the ASPxMemo looked like this:
aaa
bbb
ccc
I wish to maintain the original formatting but currently, the email's body appears as follows:
aaabbbccc
This action takes place upon clicking an ASPxButton:
<dx:ASPxButton id="btnClipboardCopy" runat="server">
<Image Url="clipboard.png"></Image>
<ClientSideEvents Click="function(s, e) {
let subject = 'Submission';
let body = footnote.GetText();
window.open('mailto:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1e767b726e7a7b6d755e666666307d7173">[email protected]</a>?subject=' + subject + '&' + 'body=' + body);
}"
/>
</dx:ASPxButton>
Any insights or suggestions would be appreciated. Thank you