Building a website in sections. A previously built and tested section uses the FCKEditor, and was working fine when we set it aside to work on other parts. The text in the editor, when accessed via server-side code (to manipulate, store in a database, etc.) was simply plain HTML which was fine. Building the new sections to the website, nothing was done to change the way FCKEditor worked or how it was implemented. The .DLL and version for the editor in the /bin folder is "FredCK.FCKeditorV2.dll (2.2.2106.29420)". However, we now seem to be having a problem with the way the the editor content comes out of the control, when accessed by that excat same server-side code.
i.e.:
when I pull the content using "fckCallComments.Value.Trim" a typed in value of: "Some sample text"
becomes: "%3Cp%3ESome%20sample%20text%3C/p%3E"
where before it would have been "<p>Some sample text</p>"
It was not in the config file before, but adding "FCKConfig.HtmlEncodeOutput = false ;" to the fckconfig.js file had no affect.
ASP.Net (2.0)'s Server.HtmlEncode and Server.HtmlDecode do not work on this issue as they deal with HTML Encoding, and this output seems more like URL Encoding.
So, two questions:
1) Why is this happening?
2) How do I make it stop?
Help!?! Thanks
-- Andrew
i.e.:
when I pull the content using "fckCallComments.Value.Trim" a typed in value of: "Some sample text"
becomes: "%3Cp%3ESome%20sample%20text%3C/p%3E"
where before it would have been "<p>Some sample text</p>"
It was not in the config file before, but adding "FCKConfig.HtmlEncodeOutput = false ;" to the fckconfig.js file had no affect.
ASP.Net (2.0)'s Server.HtmlEncode and Server.HtmlDecode do not work on this issue as they deal with HTML Encoding, and this output seems more like URL Encoding.
So, two questions:
1) Why is this happening?
2) How do I make it stop?
Help!?! Thanks
-- Andrew
Re: FCKEditor Encoding issue in ASP.Net
Beyond that, can you post any kind of reproducible example of this issue, or supply any more information at all about what else has changed in your application since the editor was working?