We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Some HTML won't display - can't work out why though

Thread ID:

Created:

Updated:

Platform:

Replies:

150481 Jan 8,2020 02:27 PM UTC Jan 14,2020 02:03 PM UTC Xamarin.Forms 4
loading
Tags: SfRichTextEditor
Nick
Asked On January 8, 2020 02:27 PM UTC

The following sample HTML won't display on the Rich Text Editor - it's come from the MVC RichTextEditor and displays fine there. 
It passes HTM5 validators ok without issue.
Anyone any thoughts?
Cheers
Nick
<p><strong><span>PROPERTIES</span></strong></p>
<p><strong><span>INVENTORY / SCHEDULE OF CONDITION</span></strong></p>
<p><strong>PROPERTY-ADDRESS:</strong></p>
<p><strong>MORETON STREET</strong></p>
<p><strong>Declaration</strong></p>
<span>The following inventory</span>

Devaraj Sekar [Syncfusion]
Replied On January 9, 2020 10:58 AM UTC

Hi Nick, 
 
Thank you for contacting Syncfusion support. 
 
The mentioned behavior “sample HTML not displaying on the Rich Text Editor” works as expected from our side. We have prepared a sample based on the provided details, which can be downloaded from the below link. 
 
 
Sample screenshot: 
 
Android: 
 
iOS: 
 
UWP: 
 
 
 
Kindly provide us more details about issue or please modify the provided sample to replicate the issue facing from your side which will be helpful for us to provide an appropriate solution at earliest. 
 
Regards, 
Devaraj S 


Nick
Replied On January 9, 2020 08:47 PM UTC

Thanks. The example works - and I can see the difference is there is no carriage returns in the HTML. If these are placed back in, the rich text editor does not show any content. It seems quite random what works and what doesn't though as plenty of content works OK with carriage returns.

Modified example below:

namespace RTETextValue
{
    // Learn more about making custom code visible in the Xamarin.Forms previewer
    // by visiting https://aka.ms/xamarinforms-previewer
    [DesignTimeVisible(false)]
    public partial class MainPage : ContentPage
    {
        public MainPage()
        {
            InitializeComponent();
            rte.Text = "<p><strong><span>PROPERTIES</span></strong></p>\r\n\r\n<p><strong><span> INVENTORY / SCHEDULE OF CONDITION</span></strong></p>\r\n\r\n<p><strong> PROPERTY - ADDRESS:</strong></p>\r\n\r\n<p><strong> MORETON STREET </strong></p>\r\n<p><strong> Declaration </strong></p>\r\n\r\n<span> The following inventory</span> ";

            //rte.Text = "<b>hello</b>"; //THIS WORKS OK
        }
    }
}


Devaraj Sekar [Syncfusion]
Replied On January 10, 2020 11:17 AM UTC

Hi Nick, 
 
Thank you for the update. 
 
We were able to reproduce the issue with “RTE gets blank while setting the value with \r(carriage return)” and suspect this to be a defect. We will update you with further details on 14th January 2020. 
 
Regards, 
Devaraj Sekar 


Devaraj Sekar [Syncfusion]
Replied On January 14, 2020 02:03 PM UTC

Hi Nick, 
Thank you for the patience. 
We confirmed that the issue with “RTE gets blank while setting the value with \r(carriage return)” is a defect and we have logged a defect report. The fix for this issue will be included in our last weekly NuGet release of January 2020, which is estimated to be available on 28th January 2020 tentatively. 
Regards, 
Devaraj S 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon