Hello,
In CKEditor I have htmlEncodeOutput turned on and I use C# to String.Replace all of the < with <, etc.. - I have a problem where if there is something on the page invalid (for instance a required field is missing) and need to reload the page I get some weird results.
Let's say I have a form and in my CKEditor field I enter this:
Testing (source is: <p>Testing</p>)
Then I hit enter, it says I didn't fill out all of the fields so when the page comes back it has:
<p>Testing</p> (source is: <p><p> Testing</p></p>)
Any ideas on how to fix this? Everything returns fine if the page doesn't hit an error and reload to display it.
Thanks!
-Casey
In CKEditor I have htmlEncodeOutput turned on and I use C# to String.Replace all of the < with <, etc.. - I have a problem where if there is something on the page invalid (for instance a required field is missing) and need to reload the page I get some weird results.
Let's say I have a form and in my CKEditor field I enter this:
Testing (source is: <p>Testing</p>)
Then I hit enter, it says I didn't fill out all of the fields so when the page comes back it has:
<p>Testing</p> (source is: <p><p> Testing</p></p>)
Any ideas on how to fix this? Everything returns fine if the page doesn't hit an error and reload to display it.
Thanks!
-Casey
Re: Bug, not sure how to fix
function UpdateContent() {
for (instance in CKEDITOR.instances)
CKEDITOR.instances[instance].updateElement();
}
Then reference the function on your submit button. In an ASP.Net button that would look like:
OnClientClick="javascript:UpdateContent()"