Profile Picture

NRichTextView not saving inserted hyperlinks to RTF string

Posted By Tom Galczynski 2 Years Ago

NRichTextView not saving inserted hyperlinks to RTF string

Author
Message
Tom Galczynski
Posted 2 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 29, Visits: 87
Hi.  I tried your suggestion and the email message displays the same way, with a border around the text.  And it's not just Outlook. Thunderbird also shows the text the same way, with several blank lines first.  Very strange.

Thanks for your help!

Nevron Support
Posted 2 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)

Group: Forum Members
Last Active: 5 days ago @ 9:07 AM
Posts: 2,963, Visits: 3,364
Hello,

Maybe the email clients you are testing with just center the content of the message vertically. Can you please try to send the email to an email address in GMAIL and see how it looks there?


Best Regards,
Nevron Support Team



Tom Galczynski
Posted 2 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 29, Visits: 87
Hi.  I sent the message to my gmail account, opened it on my phone, here is the screenshot:

https://www.nevron.com/forum/uploads/images/0e98e882-e795-417b-938b-58c7.png


Nevron Support
Posted 2 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)

Group: Forum Members
Last Active: 5 days ago @ 9:07 AM
Posts: 2,963, Visits: 3,364
Hello,

Does it look like this (i.e. with a lot of empty lines) on your computer in a desktop browser? If yes, please save the text document to NTX and send it to us for evaluation. Please also send us the HTML that you send as an email.

Thank you!


Best Regards,
Nevron Support Team



Tom Galczynski
Posted 2 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 29, Visits: 87
Hello, no when I save the html to a file it looks fine in any browser, just like it does in the control. I am guessing there is some aspect of the body, section or paragraph style that the email readers can't handle?
Thanks!


Nevron Support
Posted 2 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)

Group: Forum Members
Last Active: 5 days ago @ 9:07 AM
Posts: 2,963, Visits: 3,364
Hello,

Maybe the email clients have some non-standard default CSS values and they change the way the generated HTML looks. Please try applying a CSS reset. A simple CSS reset file is attached to this message. You can include it in a "<style></style>" element in the "<head>" element of the generated HTML. Please try this and let us know if it fixes the issue.


Best Regards,
Nevron Support Team



Attachments
reset.css (65 views, 1.00 KB)
Tom Galczynski
Posted 2 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 29, Visits: 87
Hi.  I took the reset.css code and added it to my html before adding to the MailMessage body. The result is what you see in the file emailreset2output.txt.  Then I took a look at the source after the message was displayed in Outlook. The result is what you see in the file emailreset2source.txt.  As you can see, Outlook (and also Gmail, Thunderbird) adds several "<br>" commands throughout which probably is what accounts for the blank lines.  Not sure if there is anything we can do about that?

Attachments
emailreset2output.txt (67 views, 2.00 KB)
emailreset2source.txt (71 views, 2.00 KB)
Nevron Support
Posted 2 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)

Group: Forum Members
Last Active: 5 days ago @ 9:07 AM
Posts: 2,963, Visits: 3,364
Hello,

Thank you for the HTML files. You are correct. The <br> elements are causing the blank new lines. You don't need the CSS reset, so just add the following CSS in a <style> element in the <head> element:

br {
    display: none;
}

p br {
    display: inline;
}


This CSS will hide all <br> elements that are not in a paragraph.


Best Regards,
Nevron Support Team



Tom Galczynski
Posted 2 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 29, Visits: 87
In both Gmail and Outlook the blanks persist.  In Thunderbird though, that took care of it.  I've attached the source from Outlook in emailblankssource.txt.  Thanks for your help.

Attachments
emailblankssource.txt (72 views, 1.00 KB)
Nevron Support
Posted Last Year
View Quick Profile
Supreme Being

Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)

Group: Forum Members
Last Active: 5 days ago @ 9:07 AM
Posts: 2,963, Visits: 3,364
Hi Tom and Happy New Year 2020!

Outlook uses the Microsoft Word HTML engine. It's far from perfect and does not support all CSS properties, so maybe that's why you get an incorrect rendering in Outlook. Please try using only the first CSS declaration:

br {
  display: none;
}




Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic