RichtextEditor getHTML does not return complete HTML.

We are using the getHTML API to get the HTML of RichTextEditor

getHTML does not return complete HTML.


The closing tags <HTML> and <BODY> are missing.

So now this is creating issue in displaying this html in html viewers and other html editors.

Pl advise a way to get complete html from the RichTextEditor


1 Reply

IS Indrajith Srinivasan Syncfusion Team May 8, 2020 12:22 PM UTC

Hi Abhishek, 
 
Greetings from Syncfusion support, 
 
We have validated your reported query. The usage of the API getHtml() method is used to return the HTML content place inside the body of the Rich Text Editor. If you want to refer the styles for Rich Text Editor manually use the styles in the separate CSS file. We have prepared a sample referring styles for the few elements.

Sample: https://www.syncfusion.com/downloads/support/forum/154041/ze/RichTextEditor_styles-1890353048
 
 
Please let us know if the solution helps. 
 
Regards, 
Indrajith 


Loader.
Up arrow icon