FCKeditor noob here. I set up FCKeditor 2.5.1 using FCKeditor.NET 2.5.
I am trying to get one of the FCKeditor.NET included samples to work. I type in "<div>hi</div>" into the editor and then click the "Source" button on the toolbar. The text gets converted to "<p><div>hi</div></p>" (which is correct). I then press "Submit" and the text that gets posted back to the client is "<p><div>hi</div></p>", which is incorrect. Has anyone else had a similar problem?
Thank you
I am trying to get one of the FCKeditor.NET included samples to work. I type in "<div>hi</div>" into the editor and then click the "Source" button on the toolbar. The text gets converted to "<p><div>hi</div></p>" (which is correct). I then press "Submit" and the text that gets posted back to the client is "<p><div>hi</div></p>", which is incorrect. Has anyone else had a similar problem?
Thank you

Re: FCKeditor .NET posts back incorrect encoding
I looked into the FCKeditor.cs source of the FredCK.FCKeditorV2.vs2005 project. Here is a snippet:
string postedValue = postCollection[postDataKey] ; // Revert the HtmlEncodeOutput changes. if ( this.Config["HtmlEncodeOutput"] != "false" ) { postedValue = postedValue.Replace( "&", "&" ) ; //TheGrinchWSC comment, this line is in the wrong place postedValue = postedValue.Replace( "<", "<" ) ; postedValue = postedValue.Replace( ">", ">" ) ; }This is quite problematic. postedValue initially has the value of "<p>&lt;div&gt;hi&lt;/div&gt;</p>". After executing "the line in the wrong place", above, the value of postedValue is "<p><div>hi</div></p>", and after the next two lines becomes "<p><div>hi</div></p>". If, instead, the first line is moved to the end as below, the output is correctly "<p><div>hi</div></p>".
string postedValue = postCollection[postDataKey] ; // Revert the HtmlEncodeOutput changes. if ( this.Config["HtmlEncodeOutput"] != "false" ) { postedValue = postedValue.Replace( "<", "<" ) ; postedValue = postedValue.Replace( ">", ">" ) ; postedValue = postedValue.Replace( "&", "&" ) ; //TheGrinchWSC comment, this line is now in the right place }Better yet, the code could be as follows:
string postedValue = postCollection[postDataKey] ; // Revert the HtmlEncodeOutput changes. if ( this.Config["HtmlEncodeOutput"] != "false" ) { postedValue = System.Web.HttpUtility.HtmlDecode(postedValue); }