I am dealing with an older ASP.NET application that utilizes the freetextbox WYSIWYG editor. The issue is that it saves HTML in a peculiar format into the database.
<TABLE class=mceVisualAid border=0 width=560 align=center height=395>
<TBODY>
<TR align=center>
<TD class=mceVisualAid><SPAN>
<H1 style=COLOR: rgb(0,0,0) align=center><SPAN><SPAN><SPAN><STRONG><FONT size=3><STRONG><FONT size=3><STRONG><FONT size=2><STRONG><FONT size=3> Message</FONT></STRONG></FONT></STRONG></FONT></STRONG></FONT></STRONG></SPAN></SPAN></SPAN></H1>
<H1 style=COLOR: rgb(0,0,0) align=center><SPAN><SPAN><SPAN><STRONG><FONT size=3><STRONG><FONT size=3><STRONG><FONT size=2><STRONG><FONT size=3>16 August 2013</FONT>
Now, I have switched to using the ckeditor WYSIWYG in my ASP.net MVC application, which relies on the same data saved in the database. Unfortunately, I am struggling to find an optimal way to display this HTML in the editor. Here is a snippet from my config.js file for ckeditor:
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.entities = false;
config.basicEntities = false;
config.entities_greek = false;
config.entities_latin = false;
};
Upon rendering, the output appears like this: https://i.sstatic.net/gFlET.png